Jenkins mac pkg安装 后默认配置文件/启动路径

自启动文件路径

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

jenkins.war 执行文件路径

/Applications/Jenkins/jenkins.war

配置运行脚本 文件

/Library/Application Support/Jenkins/jenkins-runner.sh

卸载脚本 文件

/Library/Application Support/Jenkins/Uninstall.command


修改端口为 9999

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

读取配置

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

自启动

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

取消自启动

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
原文地址:https://www.cnblogs.com/zjhblogs/p/10552412.html