-----------------------------------------------------------------html
原創博文,如需轉載請通知做者並註明出處!java
博主:疲憊的豆豆瀏覽器
連接:http://www.cnblogs.com/dzblog/p/6962810.html服務器
----------------------------------------------------------------spa
http://localhost:8080/3d
採用通用的URL方式,就能夠實現Jenins的中止,重啓和重載。rest
http://[jenkins-server-address][:port]/[command] where [command] can becode
exit to shutdown jenkins server
restart to restart jenkins htm
reload to reload the configuration
java -jar jenkins.war 啓動jenkins服務器
瀏覽器輸入:
http://localhost:8080/restart
點擊Yes,如圖:
瀏覽器輸入:
http://localhost:8080/reload
點擊'Try POSTing',如圖:
方法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