1. First prepare the Java environment, install the JDK
2. Download Jenkins to Linux server: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions# Installingjenkinsonredhatdistributions-importantnoteoncentosjava on Demand: Latest version or stable version
Choose the latest version here, use the Yum mode to download and install sudo wget-o/etc/yum.repos.d/jenkins.repoHttp://pkg.jenkins-ci.org/redhat/jenkins.reposudo rpm--importHttps://jenkins-ci.org/redhat/jenkins-ci.org.keysudo yum install Jenkins (there may be yum when the error, error reasons or because the upgrade python3 caused, modify the first line of the corresponding file, the python changed to Python2 can be, concrete operation see http://www.cnblogs.com/zhangxue521/ p/8335990.html)
Time is a bit long and needs to wait a while, when you see the Jenkins version and the complete word, it's already installed.
3. Next Configure the Jenkins portVi/etc/sysconfig/jenkins find/jenkins_port, modify jenkins_port= "8080", Default to "8080", I modified in order to 8088
4. Start JenkinsEnter "Service Jenkins restart",
enter access in the browser/HTTP//Your ip:8088Enter the page as follows
Then copy the red path, enter the VI red path in the terminal, and copy the password from the file to the password of the page. Go on
will be prompted to install the plug-in, choose to install the recommended plug-in, let it install automatically, and then go to the following page
Enter your administrator information so that Jebkins installation is complete
Linux Learning---Installing Jenkins under Linux system