Linux CentOS 7.1 x64
Java 1.8 x64
apache-maven-3.3.9
Installation
- 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
- sudo yum install jenkins
- Installation is complete
Modify Configration
Modify configration file /etc/sysconfig/jenkins
vim /etc/sysconfig/jenkins
# 修改启动用户为root,默认为jenkins
JENKINS_USER="root"
# 修改运行端口为9080,默认为8080
JENKINS_PORT="9080"
Start service
systemctl start jenkins.service
systemctl status jenkins.service
Configuration
open http://host:9080/
more /var/lib/jenkins/secrets/initialAdminPassword
user name: admin password: admin