Centos 命令方式下载Jenkins

参考官网:http://pkg.jenkins-ci.org/redhat-stable/

 

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

rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key

yum install jenkins

 

修改端口:

vi /etc/sysconfig/jenkins

修改:

JENKINS_PORT="9999"

启动服务:

service jenkins start

 

报错:

Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details.

修改:

vi /etc/init.d/jenkins

找到:

# see http://www.nabble.com/guinea-pigs-wanted-----Hudson-RPM-for-RedHat-Linux-td25673707.html

在下面增加JAVA:

/mnt/soft/apache-tomcat-7.0.69/bin/java

 

posted on 2016-04-25 14:09  疯子程序员  阅读(281)  评论(0编辑  收藏  举报

导航