Mac下安装jenkins

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界面

posted on 2018-07-30 09:07  Jed_SH  阅读(259)  评论(0编辑  收藏  举报