本文共 499 字,大约阅读时间需要 1 分钟。
[root@192 ~]# rpm -ql jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
[root@192 ~]#
直接替换war包就好
war包下载地址
停止然后重启 就好了 原来的war包备份
备份jenkins
最好用rsync 因为jenkins 目录牵扯到权限的问题
scp -r /var/lib/jenkins/* /home/backup/jenkins/
rsync -raz --delete --progress arb/jenkins/ /data/backup/jenkins/