zoukankan      html  css  js  c++  java
  • 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 
    
  • 相关阅读:
    安装mysql
    工坊第十天
    工坊第九天
    友链qaq
    About me
    好耶
    [Ynoi2011]初始化
    [Ynoi2013]大学
    [Ynoi2015]盼君勿忘
    [Ynoi2019模拟赛]Yuno loves sqrt technology III
  • 原文地址:https://www.cnblogs.com/lovelinux199075/p/9112730.html
Copyright © 2011-2022 走看看