Installation
- sudo wget-o/etc/yum.repos.d/jenkins.repo Http://pkg.jenkins-ci.org/redhat/jenkins.repo
- sudo rpm--import Http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
- sudo yum install Jenkins
Start/stop
- sudo service Jenkins Start/stop/restart
Note that you may have to install Java, or you cannot start Jenkins.
Install Java:
Yum list jdk, then yum install xxx, xxx may look like java-1.6.0-openjdk.x86_64
After you install Java, you may experience the following problems.
The/tmp directory is mounted with the NOEXEC option:
Jenkins failed to start,Java.lang.unsatisfiedlinkerror failed to map segment from shared object operation not permitted
The reason for the failure is that/tmp directory is mounted with the NOEXEC option
The solution is, removing the noexec option from Our/tmp in Our/etc/fstab and remounting it
Specifically, (to use root identity) first Vi/etc/fstab, the/ TMP mount point option in the noexec to exec, and then reboot, and then sudo service Jenkins start can be /c8>
Don't forget the firewall settings
Display http://IP:8080 in the browser
Reference http://blog.csdn.net/yasi_xi/article/details/8593520
CentOS 6.5 Installation Jenkins