Jenkins centos8 安装

1: wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

2:rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

3:yum install jenkins

4:systemctl start jenkins.service

启动失败:修改配置文件jdk配置路径

// 修改Jenkins 配置文件(根据需要)

vi /etc/sysconfig/jenkins

// 修改Jenkins 默认加载java的路径

vi /etc/init.d/jenkins

将原有的注释,然后找到安装路径配置,保存退出

扫描二维码关注公众号,回复: 13362106 查看本文章

// 重新加载

systemctl daemon-reload

// 启动

猜你喜欢

转载自blog.csdn.net/wdz985721191/article/details/117417087