安装jenkins
1.安装
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
安装时报如下错误:
yum安装报错Error in PREIN scriptlet in rpm package
解决方法:https://www.jianshu.com/p/2164d35aa863
2.配置端口
vi /etc/sysconfig/jenkins
找到修改端口号:
JENKINS_PORT="8080" 此端口不冲突可以不修改
服务启动/停止
sudo service jenkins start/stop/restart
在启动时,报如下错误
Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details.
[FAILED]
解决方法:https://blog.csdn.net/s78365126/article/details/85317152