centos7安装jenkins
本文tomcat服务器地址为http://192.168.1.2:8081,安装路径为/tomcat/apache-tomcat-7.0.79/
步骤1:在/tomcat/apache-tomcat-7.0.79/webapps下创建jenkins目录并将下载好jenkins的war包移动到该目录下
[root@model ~]# mkdir /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]# [root@model ~]# mv ~/jenkins.war /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]#
步骤2:移动到jenkins目录并将war包解压到该目录
[root@model ~]# cd /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]# jar -xvf jenkins.war
步骤3:启动tomcat
[root@model ~]# cd /tomcat/apache-tomcat-7.0.79/bin [root@model bin]# ./startup.sh
步骤4:在Windows客户端浏览器输入http://192.168.1.2:8081/jenkins,进入tomcat启动界面
进入服务器端获取密码:
[root@model secrets]# [root@model secrets]# cat /root/.jenkins/secrets/initialAdminPassword 4586117563faa44ea9fc0088efac417b68c [root@model secrets]#
jenkins安装完成~