MacOS install Jenkins

2022-04-21 14:22:53 浏览数 (1)

安装

代码语言: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

0 人点赞