Learning Continuous Integration with Jenkins(Second Edition)
上QQ阅读APP看书,第一时间看更新

Installing the latest version of Jenkins

To install the latest version of Jenkins, follow these steps:

  1. Add the Jenkins repository to the yum repository using the following command:
        sudo wget -O /etc/yum.repos.d/jenkins.repo \
http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  1. Install Jenkins using the following command:
        sudo yum install jenkins 
  1. See the Starting, stopping, and restarting Jenkins on Red Hat Linux section if you are required to start Jenkins.

Jenkins is now ready for use. By default, the Jenkins service runs on port 8080. To access Jenkins, use  http://localhost:8080/ or http://<Jenkins server IP address>:8080/ in a browser.