Jenkins设置开机自启(以war包方式启动jenkins)
配置环境:Centos7.6/Jenkins 2.452.2/jdk-21.0.3 jenkins启动命令: nohup java -jar jenkins.war > /dev/null 2>&1 & 1、创建sh脚本文件 # jenkins.war包,放在了/root/software目录 cd /root/software vim jenkins-start.sh …
2025-01-26