jenkins 官网安装教程:https://jenkins.io/doc/
参考博文:http://blog.csdn.net/taishanduba/article/details/50452601 (直接看这个就好了)
安装步骤
安装 JDK
在官网下载 jdk然后安装:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
安装 jenkins
brew install jenkins
homebrew 的安装方式
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
启动 jenkins
java -jar /Applications/Jenkins/jenkins.war
说明:启动的默认端口是:8080,可以用–httpPort参数去指定监听端口
Web 访问
在浏览器: <ip_address>:8080
初始密码串
sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword
Jenkins 服务管理
启动 Jenkins
launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
卸载 Jenkins
/Library/"Application Support"/Jenkins/Uninstall.command
重启 Jenkins
http://<ip_address>:8080/restart
http://<ip_address>:8080/safe-restart
停止 Jenkins
launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
http://<ip_address>:8080/shutdown