First prepare the Java environment and install the JDK.
Download Address: http://www.Oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
There's not much to introduce.
2. Download Jenkins to Linux server
View Kernel version information: cat/proc/version more/etc/issue
Download Address: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions# Installingjenkinsonredhatdistributions-importantnoteoncentosjava
On-Demand selection: Latest Version or stable version
Here Select the latest version, Shyongyum way to download the installation
[root@ytx_18_93 xxxx]# sudo wget-o/etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
[root@ytx_18_93 xxxx]# sudo rpm--import https://jenkins-ci.org/redhat/jenkins-ci.org.key
[root@ytx_18_93 xxxx]# sudo yum install Jenkins
When you see the Jenkins version and complete, you have completed the installation
Next Configure the Jenkins port: Vi/etc/sysconfig/jenkins
Modify jenkins_port= "8080", Default to "8080"
View the port number currently being used by the server: Netstat-ntulp |grep 80
"8080" port is not used, the landlord here to change to "8888"
3, Start Jenkins
Enter "Service Jenkins restart" to start failure
Is the JDK configuration issue
Enter [root@ytx_18_93 ~]# vi/etc/init.d/jenkins Modify JDK Configuration
Add JDK installation path before "/usr/bin/java"
Now it's ready to start:
[root@ytx_18_93 ~]# Service Jenkins restart
In the local browser, enter the "http://IP:8888" Login Jenkins, the first time you log in Jenkins will require unlock
Open the path in the red flag, remove the password, fill in the image above, and click "Continue"
[Root@ytx_18_93 ~]# Cd/var/lib/jenkins/secrets:
After the completion of the input will be prompted to install the custom plug-in or recommended Plug-ins, where I choose to recommend Plug-ins:
Wait for plug-in installation to complete
Enter the above information to set the administrator user
At this point, the Jenkins has been installed.
Use Gitlab+jenkins to automatically generate Gitbook and publish (Nginx) http://www.linuxidc.com/Linux/2016-05/131136.htm in LAN
LINUX+GIT+MAVEN+JENKINS+NEUXS automated compilation environment to build http://www.linuxidc.com/Linux/2016-02/128652.htm
Install Jenkins http://www.linuxidc.com/Linux/2016-11/137548.htm on CentOS 7
CentOS6 Installation Jenkins http://www.linuxidc.com/Linux/2016-05/131365.htm
Automated build of Git+maven using Jenkins configuration http://www.linuxidc.com/Linux/2016-02/128641.htm
Jenkins+maven+git build a continuous integration and automated deployment of configuration notes http://www.linuxidc.com/Linux/2015-06/118606.htm
Distributed construction and deployment of Jenkins--node http://www.linuxidc.com/Linux/2015-05/116903.htm
Installation of Jenkins server under CentOS7 http://www.linuxidc.com/Linux/2017-02/141119.htm
Jenkins+gitlab+sonar Code inspection platform to build http://www.linuxidc.com/Linux/2017-01/139900.htm
Build the Jenkins+sonarqube MAVEN project automation test platform on Fedora 21 http://www.linuxidc.com/Linux/2017-02/140780.htm
Jenkins's detailed description : please click here
Jenkins Download Address : please click here
This article permanently updates the link address : http://www.linuxidc.com/Linux/2017-03/141490.htm