centos 安装jenkins

2020-10-11  本文已影响0人  louhangfei

// 安装jdk
sudo yum install java-1.8.0-openjdk-devel
//指定源
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
// 导入key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
// yum install
sudo yum install jenkins
// 安装完成后启动Jenkins
sudo systemctl start jenkins
// 查看是否启动成功
systemctl status jenkins

参考:
https://archives.jenkins-ci.org/redhat-stable/
https://linuxize.com/post/how-to-install-jenkins-on-centos-7/

上一篇 下一篇

猜你喜欢

热点阅读