centos中安装jenkins

官方参考页面:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions

wget -O /etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.repo

rpm --importhttp://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

yum install jenkins -y

 

修改端口:(默认8080)
修改文件/etc/sysconfig/jenkins中如下即可

## Type: integer(0:65535)
## Default: 8080
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT=”8081″

启动/停止/重启jenkins:

service jenkins start/stop/restart

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据