安装
cd /etc/yum.repos.d/
wget http://pkg.jenkins.io/redhat/jenkins.repo
rpm --import http://pkg.jenkins.io/redhat/jenkins.io.key
yum install -y jenkins
配置JAV运行环境
/etc/init.d/jenkins 找到/usr/bin/java那一行,在底下加入如下代码:
/usr/local/jdk1.8.0_221/bin/java
我的JAVA安装位置 /usr/local/jdk1.8.0_221,JAVA环境搭建教程
启动
启动命令:
service jenkins start
出现Warning
Starting jenkins (via systemctl): Warning: jenkins.service changed on disk. Run 'systemctl daemon-reload' to reload units.
执行
systemctl daemon-reload
重启jenkins
service jenkins restart
搞定
jenkins默认端口8080,启动服务后输入ip+端口,看到下面这张图片,搞定收工
网友评论