标签:rac 版本号 www. pac 下界 main maven2 epo acl
[root@localhost ~]# cat /etc/redhat-release CentOS release 6.5 (Final) [root@localhost ~]# uname -r 2.6.32-431.el6.x86_64
[root@localhost soft]# tar xf jdk-8u151-linux-x64.tar.gz -C /usr/local/ [root@localhost soft]# mv /usr/local/jdk1.8.0_151/ /usr/local/java [root@localhost soft]# echo -e "\nexport JAVA_HOME=/usr/local/java\nexport CLASSPATH=.:/usr/local/java/lib/tools.jre:/usr/local/java/lib/dt.jar\nexport JRE_HOME=/usr/local/java/jre\nexport PATH=$PATH:/usr/local/java/bin" >> /etc/profile #添加全局变量 [root@localhost soft]# source /etc/profile [root@localhost soft]# java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
[root@localhost soft]# tar xf apache-maven-3.5.0-bin.tar.gz -C /usr/local/ #解压maven源码包 [root@localhost soft]# mv /usr/local/apache-maven-3.5.0/ /usr/local/maven #更改项目安装的目录名称 [root@localhost soft]# echo -e "export MAVEN_HOME=/usr/local/maven\nPATH=$PATH:/usr/local/maven/bin">>/etc/profile #添加全局变量 [root@localhost soft]# source /etc/profile #声明全局变量 [root@localhost soft]# mvn -v #查看maven版本号 Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00) Maven home: /usr/local/maven Java version: 1.8.0_151, vendor: Oracle Corporation Java home: /usr/local/java/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix"
55 <localRepository>/data/maven/repository</localRepository> #第55行开启本地存储目录的路径。仓库下载方指定额位置 <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.7</jdk> </activation> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> </properties> <repositories> <!--公共仓库--> <repository> <id>public-nexus</id> <url>http://192.168.*.**:8081/repository/maven-public/</url>; <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <!--第三方仓库--> <repository> <id>aliyun</id> <name>Maven aliyun Repository</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>lds</id> <name>Maven lds Repository</name> <url>https://code.lds.org/nexus/content/groups/main-repo/</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>uk</id> <name>Maven uk Repository</name> <url>http://uk.maven.org/maven2/</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>offical</id> <name>Maven Official Repository</name> <url>http://repo2.maven.org/maven2</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>http://repo.spring.io/libs-milestone-local</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>spring-releases</id> <name>Spring Releases</name> <url>http://repo.spring.io/libs-release-local</url>; <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile>
[root@localhost soft]# tar xf apache-tomcat-8.5.23.tar.gz -C /usr/local/ [root@localhost soft]# mv /usr/local/apache-tomcat-8.5.23/ /usr/local/tomcat [root@localhost soft]# echo -e "export TOMCAT_HOME=/usr/local/tomcat\nPATH=$PATH:/usr/local/tomcat/bin" >>/etc/profile #可以定义为TOMCAT_HOME也可以 CATALINA_PATH [root@localhost soft]# source /etc/profile
[root@localhost webapps]# pwd /usr/local/tomcat/webapps [root@localhost webapps]# ls docs examples host-manager jenkins.war manager ROOT [root@localhost webapps]# cd ../bin/ [root@localhost bin]# ./startup.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java/jre Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar Tomcat started. [root@localhost bin]# ps -ef |grep tomcat root 4575 1 99 14:51 pts/1 00:00:11 /usr/local/java/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start [root@localhost bin]# cd ../webapps/ [root@localhost webapps]# ls docs examples host-manager jenkins jenkins.war manager ROOT
标签:rac 版本号 www. pac 下界 main maven2 epo acl
原文地址:http://www.cnblogs.com/haorong/p/7943326.html