Reprint: http://itjh.net/2016/04/26/centos-install-jenkins/
Jenkins is an open source project that provides an easy-to-use, continuous integration system that frees developers from complex integrations and focuses on more important business logic implementations. At the same time, Jenkins can implement errors in monitoring integration, provide detailed log files and reminders, and graphically display the trend and stability of project construction in the form of graphs.
Centos 6.7Jenkins 2.0
Yum Install Jenkins
jenkins
yum
The source file that was created
$ vim /etc/yum.repos.d/jenkins.repo
In jenkins.repo
, add the following:
[jenkins]name=Jenkinsbaseurl=http://pkg.jenkins-ci.org/redhatgpgcheck=1
rpm
Increase jenkins
The source'skey
$ sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
Installationjenkins
install jenkins
Installation Successful
Configuring the Jenkins File
The main configuration jenkins
of the running port and listening port, as well as the startup user, the configuration file address is /etc/sysconfig/jenkins
, the following is the main modification content:
Vim/etc/sysconfig/jenkins
# Modify startup user as root, default to Jenkins
jenkins_user="Root"
# Modify the run port to 9999, default to 8080
jenkins_port="9999"
Startjenkins
sudo service Jenkins start
Configuration
Jenkins
Open Jenkins
Page
http://192.168.16.190:9999
Initial boot requires a password
Password file /var/lib/jenkins/secrets/initialAdminPassword
, and then fill in the Click Continue
.
Select Install
Install ing
?
Log file/var/log/jenkins/jenkins.log
Installation successfully created first user
Linux CentOS Installation Jenkins