• Jenkins技巧:如何启动、停止、重启、重载Jenkins


    -----------------------------------------------------------------

    原创博文,如需转载请通知作者并注明出处!

    博主:疲惫的豆豆

    链接:http://www.cnblogs.com/dzblog/p/6962810.html

    ----------------------------------------------------------------

    Jenkins地址


    http://localhost:8080/

    概要


    采用通用的URL方式,就可以实现Jenins的停止,重启和重载。

    http://[jenkins-server-address][:port]/[command] where [command] can be

    exit to shutdown jenkins 

    restart to restart jenkins 

    reload to reload the configuration

    启动Jenkins


    java -jar jenkins.war 启动jenkins服务器

    重启Jenkins


    浏览器输入:

    http://localhost:8080/restart

    点击Yes,如图:

    重载Jenkins配置信息


    浏览器输入:

    http://localhost:8080/reload

    点击'Try POSTing',如图:

    停止Jenkins服务器


    方法1. Terminal and Kill Process

    $ps -e | grep jenkins
     56 ??         1:22.88 /usr/bin/java -Dfile.encoding=UTF-8 -XX:PermSize=256m -XX:MaxPermSize=512m -Xms256m -Xmx512m -Djava.io.tmpdir=/Users/Shared/Jenkins/tmp -jar /Applications/Jenkins/jenkins.war --httpPort=8080
     4981 ttys001    0:00.00 grep jenkins
    $sudo kill 56

    方法2.  通过URL

    浏览器输入:

    http://localhost:8080/exit

    点'Try POSTing',如图:

    END

  • 相关阅读:
    选择排序
    散列冲突解决方案
    string stringbuffer StringBuilder
    java关键字
    Vector
    What is the difference between book depreciation and tax depreciation?
    Type of Asset Books in Oracle Fixed Assets
    questions
    Oracle Express 11g
    iot
  • 原文地址:https://www.cnblogs.com/dzblog/p/6962810.html
Copyright © 2020-2023  润新知