1) 安装tomcat
安装tomcat6: http://www.cnblogs.com/itech/p/3506011.html
安装tomcat7: http://www.cnblogs.com/itech/p/3515846.html
2) 安装jenkins
下载jenkins,wgethttp://mirrors.jenkins-ci.org/war/latest/jenkins.war
如果tomcat7以daemon运行,需要先设置jenkins_home:
vim /etc/init.d/tomcat7 或者 /usr/share/tomcat7/bin/startup.sh
export JENKINS_HOME=/home/AAA/jenkins/jenkins_home3
然后重启tomcat:
service tomcat7 stop && service tomcat7 start
拷贝到tomcat 的webapps下:
cp /home/AAA/jenkins/jenkins.war /usr/share/tomcat7/webapps/
然后访问http://192.168.0.120:8080/jenkins
参考:
完!