jenkins升级

1丶查看war包所在的目录

#rpm -ql jenkins
/etc/init.d/jenkins                //jenkins的启动文件
/etc/logrotate.d/jenkins		   //日志切割
/etc/sysconfig/jenkins             //jenkins的配置文件
/usr/lib/jenkins                   
/usr/lib/jenkins/jenkins.war       //jenkins的程序war包
/usr/sbin/rcjenkins                //jenkins的为二进制文件
/var/cache/jenkins                 //jenkins的程序文件,运行程序解压出来的
/var/lib/jenkins                   //jenkins的主目录
/var/log/jenkins                   //jenkins的日志文件

2丶下载最新版本的jenkins的war包

test -d /tools || mkdir /tools 
cd /tools 
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/2.125/jenkins.war

3丶停止jenkins服务

systemctl stop jenkins

4丶备份原来的war包,并拷贝最新版本war包到/usr/lib/jenkins目录下

cd /usr/lib/jenkins/
mv jenkins.war jenkins-2.89.4.war.bak
mv /tools/jenkins.war .

5丶启动jenkins

systemctl start jenkins 
ss -anltup | grep 8080 
posted @ 2018-05-30 19:00  你很棒  阅读(7425)  评论(0编辑  收藏  举报