一、安装jenkins
https://www.jenkins.io/doc/book/installing/linux/
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 yum upgrade
sudo yum install java-11-openjdk
sudo yum install jenkins
sudo systemctl daemon-reload
二、检测启动
You can enable the Jenkins service to start at boot with the command:
sudo systemctl enable jenkins
You can start the Jenkins service with the command:
sudo systemctl start jenkins
You can check the status of the Jenkins service using the command:
sudo systemctl status jenkins
三、解决启动不起来的问题
Failed to start Jenkins Continuous Integration Serve
四、修改配置
○ 配置文件
■ /etc/sysconfig/jenkins
■ /usr/lib/systemd/system/jenkins.service
○ 初始密码位置
■ vim /var/lib/jenkins/secrets/initialAdminPassword
■ 1d1fc540c2b24f4d9653f60c5b481f38
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)