本文发布于Cylon的收藏册,转载请著名原文链接~

修改启动用户

先停止jenkins服务

1
2
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo vim /Library/LaunchDaemons/org.jenkins-ci.plist

授权jenkins工作目录和临时目录

1
2
sudo chown -R zhulangren:wheel /Users/Shared/Jenkins/
sudo chown -R zhulangren:wheel /var/log/jenkins/

启动jenkins

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

jenkins自启动文件路径

1
/Library/LaunchDaemons/org.jenkins-ci.plist

卸载脚本文件

1
/Library/Application\ Support/Jenkins/Uninstall.command

修改jenkins启动端口

1
sudo defaults write /Library/Preferences/org.jenkins-ci httpPort '9999'

读取jenkins配置文件

1
defaults read /Library/Preferences/org.jenkins-ci

设置自启动

1
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plis

取消自启动

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

jenkins war路径

1
/Applications/Jenkins/jenkins.war

Reference

Mac Jenkins 权限问题

本文发布于Cylon的收藏册,转载请著名原文链接~

链接:https://www.oomkill.com/2019/10/jenkens-migrant-in-macos/

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」 许可协议进行许可。