First step [root @localhost yum.repos.d]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
Step 2 [root @localhost yum.repos.d]# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
The third step [root @localhost yum.repos.d]# yum install jenkins
The fourth step is to modify the port [root @localhost yum.repos.d]# vi /etc/sysconfig/jenkins
Find JENKINS_PORT="8080" and change it to JENKINS_PORT="9000"
Find JENKINS_AJP_PORT="8009" and change it to JENKINS_AJP_PORT="9001" (this one was not found)
Step 5 Start the Jenkins service: [root @localhost yum.repos.d]# service jenkins start
Starting Jenkins [ OK ]
The sixth step is to add chkconfig jenkins on
Notice:
Modify the jdk configuration in jenkins vim /etc/init.d/jenkins
Notice
1. JenKins forgot the password for the first time, refer to the document: https://www.cnblogs.com/520playboy/p/6244257.html
The password defaults to /var/lib/jenkins/secrets/initialAdminPassword
2. The plugin is empty
Configure the url of the upgrade site
Open the "Advanced" option of the plugin management, fill in in the upgrade site, then restart
http://mirror.xmission.com/jenkins/updates/update-center.json
3. Install the svn/git plugin (subversion/git)
JenKins management interface account chenyao/xi199321
Access path: http://172.16.27.46:9000/