Environment Description: Linux environment, CentOS 7 version.
About deploying tomcat, see above blog post: https://www.cnblogs.com/lelelong/p/10252225.html
Then, Jenkins deployed on Tomcat.
Step One: Download Jenkins, address: https://jenkins.io/download/ , choose the right version:
Step 2: Run rpm file
rpm -ivh jenkins-2.164-XX.rpm
Upon completion, it will generate a .war file, the default under [/ usr / lib / jenkins] folder.
[root@localhost jenkins]# cd /usr/lib/jenkins/
[root@localhost jenkins]# ls
jenkins.war
The third step: Copy Jenkins.war to Tomcat -> webapps folder, shut down tomcat, after the restart, Jenkins folder will appear as follows:
[root@localhost jenkins]# cd /root/apps/apache-tomcat/apache-tomcat-9.0.20/webapps/ [root@localhost webapps]# ls docs examples host-manager jenkins jenkins.war manager ROOT
访问Jenkins:http://localhost:8080/jenkins
Note: The first time you access the default login password location: [/ root / .jenkins / secrets / initialAdminPassword], you can also view the tomcat log in to when you first start.
Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 418d9617546240f2b62933b6461fb6cb This may also be found at: /root/.jenkins/secrets/initialAdminPassword
After registration is completed, can Jenkins - modify user password management>, add / delete users, etc. Actions -> System Management.