1. Add a Jenkins repo Source
[[Email protected] ~] # Wget-O/etc/yum. Repos. d/Jenkins. Repo http://jenkins-ci.org/redhat/jenkins.repo
[[Email protected] ~] # Rpm -- import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
2. install Java software
[[Email protected] ~] # Yum-y install java-1.8.0-openjdk.x86_64
3. Install Jenkins
[[Email protected] ~] # Yum-y install Jenkins
4. jekins installation directory
[[Email protected] ~] # Cd/usr/lib/Jenkins
[[Email protected] Jenkins] # ls
Jenkins. War
5. Jenkins configuration file
[[Email protected] Jenkins] # Vim/etc/sysconfig/Jenkins
6. Start Jenkins
[[Email protected] Jenkins] #/etc/init. d/Jenkins start
Starting Jenkins [OK]
7. View ports
[[Email protected] Jenkins] # netstat-lntp | grep Java
TCP 0 0: 45375: * Listen 2369/Java
TCP 0 0: 55589: * Listen 2369/Java
TCP 0 0: 8009: * Listen 2369/Java
TCP 0 0: 8080: * Listen 2369/Java
Deploy Jenkins service in centos