安装Jenkins

前提条件: 已经成功安装并配置了Tomcat + JDK + Mysql, 可参考: https://www.cnblogs.com/alicegu2009/p/9174134.html

1. Open https://jenkins.io/download/

2. Download Generic Java package (.war)

3. Copy the war to Ubutu machine under: /usr/local/apache-tomcat-9.0.8/webapps

4. Start tomcat, 查看启动日志:

root@agu:/usr/local/apache-tomcat-9.0.8/bin# ./startup.sh 


root@agu:/usr/local/apache-tomcat-9.0.8/logs# tail -f catalina.out 

root@agu:/usr/local/apache-tomcat-9.0.8/bin# cat /root/.jenkins/secrets/initialAdminPassword

5. Access Jenkins with http://<ip>:8080/jenkins/ (e.g. http://47.100.190.114:8080/jenkins/), need sdmin password to unlock.

6. Find the password and copy the password and paste it:

root@agu:/usr/local/apache-tomcat-9.0.8/bin# cat /root/.jenkins/secrets/initialAdminPassword

 

posted on 2018-06-12 23:02  alicegu  阅读(127)  评论(0编辑  收藏  举报