安装
代码语言:javascript复制brew install jenkins-lts
安装完成输出如下:
Note: When using launchctl the port will be 8080.
To have launchd start jenkins-lts now and restart at login:
brew services start jenkins-lts
Or, if you don't want/need a background service you can just run:
jenkins-lts
常用命令
1.启动jenkins服务
代码语言:javascript复制brew services start jenkins-lts
or
jenkins-lts
2.停止jenkins服务
代码语言:javascript复制brew services stop jenkins-lts
3.重启jenkins服务
代码语言:javascript复制brew services restart jenkins-lts
4.更新jenkins版本
代码语言:javascript复制brew upgrade jenkins-lts
5.手动启动jenkins服务
代码语言:javascript复制sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
6.手动停止jenkins服务
代码语言:javascript复制sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
7. 访问地址
代码语言:javascript复制http://localhost:8080
首次配置
1.终端启动jenkins
代码语言:javascript复制jenkins-lts
2.浏览器访问jenkins首页
代码语言:javascript复制http://localhost:8080
3.修改镜像地址
代码语言:javascript复制vi hudson.model.UpdateCenter.xml 将 https://updates.jenkins.io/update-center.json 更改为 https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
4.安装推荐的插件
5.设置管理员用户名及密码
6.完成
References
[1]
jenkins官网: https://www.jenkins.io
[2]
macOS Jenkins安装&配置: https://www.jianshu.com/p/9dc3b45fbbec
[3]
Please wait while Jenkins is getting ready to work: https://issues.jenkins-ci.org/browse/JENKINS-38315
[4]
部署jenkins服务器出现Please wait while Jenkins is getting ready to work ...一直进不去该怎么办?: http://www.dengb.com/Linuxjc/1400273.html