修改两个路径下的plist配置: ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist和/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist 将上面两个plist中的httpListenAddress后的ip地址,修改为本机IP或者0.0.0.0即可。修改完成后重启jenkins:
~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
jenkins
brew services restart jenkins
####参考: