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包移动到该目录下
[[email protected] ~]# mkdir /tomcat/apache-tomcat-7.0.79/webapps/jenkins [[email protected] ~]# [[email protected] ~]# mv ~/jenkins.war /tomcat/apache-tomcat-7.0.79/webapps/jenkins [[email protected] ~]#
步骤2:移动到jenkins目录并将war包解压到该目录
[[email protected] ~]# cd /tomcat/apache-tomcat-7.0.79/webapps/jenkins [[email protected] ~]# jar -xvf jenkins.war
步骤3:启动tomcat
[[email protected] ~]# cd /tomcat/apache-tomcat-7.0.79/bin [[email protected] bin]# ./startup.sh
步骤4:在Windows客户端浏览器输入http://192.168.1.2:8081/jenkins,进入tomcat启动界面
进入服务器端获取密码:
[[email protected] secrets]# [[email protected] secrets]# cat /root/.jenkins/secrets/initialAdminPassword 4586117563faa44ea9fc0088efac417b68c [[email protected] secrets]#
jenkins安装完成~