又是jenkins
2020-04-07 本文已影响0人
dittoyy3991
- 安装jdk-8u171-linux-x64.tar.gz
export JAVA_HOME=/app/jdk1.8.0_171/
export JRE_HOME=/app/jdk1.8.0_171/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
-
下载安装tomcat 9.0.33
1 tar -xzvf apache-tomcat-9.0.33.tar.gz
2 默认8080端口jenkins http://10.x.x.46:8080/jenkins/
-
下载jenkins.war包
1 放到/opt/apache-tomcat-9.0.33/webapps
2 启动tomcat 执行/opt/apache-tomcat-9.0.33/bin/startup.sh
3 开启8080端口,首次输入密码cat /root/.jenkins/secrets/initialAdminPassword
4 [加入开机自启动](vi /etc/rc.local加上sh /opt/apache-tomcat-9.0.33/bin/startup.sh)
image.png