安装
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
启动应用
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on
如果出现Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details.[FAILED]
错误.需要修改配置文件.
修改配置
sudo vim /etc/init.d/jenkins
for candidate in $candidates
路径后添加java路径/usr/local/application/java7/bin/java
.
网友评论