1, the installation
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
2, modify the user name, port
vi / etc / sysconfig / jenkins user you want to modify and port
JENKINS_USER="root" JENKINS_PORT="8888"
If another firewall. Custom ports need to be open, such as "8888"
3, start, stop, restart commands
service jenkins start
service jenkins stop
service jenkins restart
4, access
http: // IP: 8888; requires patience later on, appears below this page
5, find the problem in the directory, copy the password to the input box above, enter the next step; or select the recommended custom plugins installed
6, after the installation is complete
7, continue down, you do not need to speak more
Reproduced in: https: //www.jianshu.com/p/d6389d61c928