root用户下安装过程
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
如果报
错误: 无法验证 pkg.jenkins.io 的由 “/C=US/O=Let's Encrypt/CN=R3” 颁发的证书:
颁发的证书已经过期。
要以不安全的方式连接至 pkg.jenkins.io,使用“--no-check-certificate”。
直接运行 wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install -y jenkins
修改
vi /etc/sysconfig/jenkins修改成下面的
systemctl start jenkins.service
尝试过
修改
chown -R root /var/log/jenkins
chown -R root /var/cache/jenkins
chown -R root /var/lib/jenkins
chgrp -R root /var/lib/jenkins
chgrp -R root /var/log/jenkins
chgrp -R root /var/cache/jenkins
没有效果
就是网上正常流程修改/etc/sysconfig/jenkins后重启即可生效
jenkins 更改默认端口
https://blog.csdn.net/wudinaniya/article/details/97628477
要改两处的
你把之前的jenkins服务关了,进程kill完,重启一下