1 | jenkins是一个广泛用于持续构建的可视化web工具, |
安装jenkins
准备工作 安装java环境
- 配置yum源
1 | sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo |
- 导入公钥
1 | sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key |
-
安装jenkins
yum install jenkins -y
-
修改用户
vi /etc/sysconfig/jenkins
-
配置文件中加入java路径
vim /etc/rc.d/init.d/jenkins
-
启动
systemctl start jenkins -
初次密码路径
/var/lib/jenkins/secrets/initialAdminPassword