CentOS 7 安装jenkins

官方安装方法:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
#sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key;
yum install jenkins;

启动:

sudo systemctl start jenkins

查看服务状态:

sudo systemctl status jenkins

服务启动命令:

/etc/rc.d/init.d/jenkins

修改配置文件:

vi /etc/sysconfig/jenkins

初始密码位置:

/root/.jenkins/secrets/initialAdminPassword
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享