安装Jenkins
Posted alicegu2009
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装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, 查看启动日志:
[email protected]:/usr/local/apache-tomcat-9.0.8/bin# ./startup.sh [email protected]:/usr/local/apache-tomcat-9.0.8/logs# tail -f catalina.out [email protected]:/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:
[email protected]:/usr/local/apache-tomcat-9.0.8/bin# cat /root/.jenkins/secrets/initialAdminPassword
以上是关于安装Jenkins的主要内容,如果未能解决你的问题,请参考以下文章
Jenkins——Jenkins+SonarQube代码审查