1.安装maven
下载http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip
(1)改名 apache-maven-3.0.4移动到/usr目录的时候,我会把其改名为maven,这是为了方便使用。
(2)修改环境变量:
vi /etc/profile
#maven
export MAVEN_HOME=/usr/local/maven
export PATH=${MAVEN_HOME}/bin:${PATH}
(3)环境变量生效
source /etc/profile
(4)验证:mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)
Maven home: /usr/local/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/local/jdk1.7.0_51/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"
2.jenkins下载
http://mirror.xmission.com/jenkins/war/1.613/jenkins.war
(1)Jenkins 配置
拷贝下载的 jenkins.war 到 tomcat的webapps目录下:
cp -RP jenkins.war /usr/lcoal/tomcat/webapps/
vi /etc/profile
export JENKINS_HOME=/usr/local/tomcat/webapps/jenkins
source /etc/profile
3.Apachetomcat 安装
http://apache.fayea.com/tomcat/tomcat-7/v7.0.61/bin/apache-tomcat-7.0.61.tar.gz
启动tomcat服务器
cd bin
./startup
4.git 软件安装
wget https://www.kernel.org/pub/software/scm/git/git-1.8.3.4.tar.gz
./configure
make && make install
5.访问tomcat和Jenkins工程
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。