The installation of Jenkins can be divided into online installation and download software for local installation. I use a different method here, after downloading it is an application directly click Install will be able. After installation, configure the path of the JDK OK! The following is a specific explanation:
A. Prerequisites
1. Be sure to install the jdk,server on the jdk1.8 before installing Jenkins
2. Download the installation kit for Jenkins (official website). I'm using: jenkins-1.617-1.1.noarch.rpm.
two. Installation
1. Extract the downloaded installation package to the folder you want to install
2. Double-click on the installation, according to the prompt wizard step-by-step installation can
three. Configuration
1. The service that starts Jenkins after installation may be presented with a demo sample such as the following failure information,
Errors such as the following:
Starting Jenkins Bash:/usr/bin/java: No that file or folder
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 the path. For example, with:
2. After installation, assuming that the port conflict with the local, you need to change the port number Jenkins. Such as:
Cd/etc/sysconfigvim Jenkins
Such as:
jenkins_port= "8080" jenkins_ajp_port= "8009"
You can change the port number after you go in (notice that the configuration is run through the source command in Jenkens after the change is complete.
Command:
Source/etc/sysconfig/jenkens)
Four. Start
Server that starts 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)