需要jdk11或17支持
1. 配置源
1 sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 2 sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
2. 如提示证书过期
则安装ca-certificates
1 yum install -y ca-certificates
2. 安装
1 yum install -y jenkins
3. Jenkins默认8080端口,避免冲突可以修改端口号
1 vi /usr/lib/systemd/system/jenkins.service
4. 启动、状态、停止、重启
1 systemctl start jenkins.service 2 systemctl status jenkins.service 3 systemctl stop jenkins.service 4 systemctl restart jenkins.service
5. 登录
1 cat /var/lib/jenkins/secrets/initialAdminPassword
获取密码登录后修改密码
6. 选择安装推荐插件,等待插件安装完毕
标签:service,systemctl,AnolisOS7.9,io,jenkins,Jenkins,安装 From: https://www.cnblogs.com/jf8710/p/18209064