mac os
启动
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
关闭
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
修改端口
sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070
Linux
启动
service jenkins start
关闭
service jenkins stop
修改端口
vim /etc/sysconfig/jenkins 找到 JENKINS_PORT=“8080”, //7070 JENKINS_AJP_PORT=“8009”, 分别修改成你需要的端口号。 sudo service jenkins restart //重启服务 通过新端口号访问 OK! 浏览器进入Jenkins,登录 http://localhost:7070/
URL方式(不包括启动)
关闭Jenkins
http://localhost:7070/exit
重启Jenkies
http://localhost:7070/restart
重新加载配置信息
http://localhost:7070/reload