Jenkins installation can be divided into online installation and download software Local installation, I use the second method, the download is an application directly click on the installation can, and so on after the installation of the JDK path is OK! The following is a detailed explanation:
A. Prerequisites
1. Be sure to install the JDK before installing Jenkins, which is installed on the server jdk1.8
2. Download the installation kit for Jenkins (official website), I am using: jenkins-1.617-1.1.noarch.rpm
two. Installation
1. Extract the downloaded installation package to the directory you want to install
2. Double-click Install, follow the Prompts wizard step by step installation can be
three. Configuration
1. The service that starts Jenkins after installation may prompt the following failure message,
The error is as follows:
Starting Jenkins Bash:/usr/bin/java: No that file or directory
Don't worry. The error is caused by not finding the JDK path to Java, then you need to configure the JDK's path strength to Jenkins
Command:
Cd/etc/init.dvim Jenkins
After you enter the above command, edit its path, for example:
2. After the installation is complete, if it conflicts with the local port, you need to modify the port number of Jenkins. Such as:
Cd/etc/sysconfigvim Jenkins
Such as:
jenkins_port= "8080" jenkins_ajp_port= "8009"
Go in and modify the port number (note that after the modification is complete, the configuration in Jenkens is performed via the source command.
Command:
Source/etc/sysconfig/jenkens)
Four. Start
Server to start Jenkins after configuration is complete
Command:
Service Jenkins Start
Prompt to start successful after entering the local URL in the browser http://localhost:8009 OK!
Install Jenkins under Linux (Red Hat)