1. 程式人生 > >Mac下安裝jenkins

Mac下安裝jenkins

打開 org agents -c 停止 git home nload 安裝

1.安裝brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安裝jenkins

brew install jenkins

執行

java -jar /usr/local/Cellar/jenkins/2.49/libexec/jenkins.war --httpPort=8080
//2.49是指Jenkins的版本號

鏈接launchd配置文件

ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents

啟動jenkins

launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

停止jenkins

launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

打開瀏覽器,輸入 localhost:8080 就可看到Jenkins的web界面

Mac下安裝jenkins