[root@centos02 src]# mv apache-maven-3.2.1 /usr/local/maven
[root@centos02 src]# cd /usr/local/maven/
[root@centos02 maven]# vi /etc/profile
export PATH=$PATH:/alidata/server/mysql/bin:/alidata/server/nginx/sbin:/alidata/server/php/sbin:/alidata/server/php/bin
export JAVA_HOME=/usr/local/java/jdk1.7.0_71
export JRE_HOME=/usr/local/java/jdk1.7.0_71/jre
export MAVEN_HOME=/usr/local/maven
export PATH=$PATH:/usr/local/java/jdk1.7.0_71/bin:${MAVEN_HOME}/bin
export CLASSPATH=./:/usr/local/java/jdk1.7.0_75/lib:/usr/local/java/jdk1.7.0_71/jre/lib
[root@centos02 maven]# mvn -v
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-15T04:37:52+11:00)
Maven home: /usr/local/maven
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/local/java/jdk1.7.0_71/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: "unix"
[root@centos02 src]# cp jenkins.war /usr/local/tomcat/webapps/
[root@centos02 src]# cd /usr/local/tomcat/webapps/
[root@centos02 webapps]# ls
docs host-manager jenkins.war myWebSite SJYRP
examples jenkins manager ROOT
export PATH=$PATH:/alidata/server/mysql/bin:/alidata/server/nginx/sbin:/alidata/server/php/sbin:/alidata/server/php/bin
export JAVA_HOME=/usr/local/java/jdk1.7.0_71
export JRE_HOME=/usr/local/java/jdk1.7.0_71/jre
export MAVEN_HOME=/usr/local/maven
export JENKINS_HOME=/usr/local/webapps/Jenkins
export PATH=$PATH:/usr/local/java/jdk1.7.0_71/bin:${MAVEN_HOME}/bin
export CLASSPATH=./:/usr/local/java/jdk1.7.0_75/lib:/usr/local/java/jdk1.7.0_71/jre/lib
http://192.168.1.118:8080/jenkins/