我使用homebrew在我的Mac OS X上安装了jenkins,并通过http://localhost:8080
或者 http://127.0.0.1:8080
工作正常。但是我无法通过主机名或IP地址访问jenkins实例。
1. http://myjenkinshost.local:8080
2. http://192.168.0.100:8080
即使从本地计算机(jenkins主机本身)也无法访问这两个链接。
同时,命令ping 192.168.0.100
和ping myjenkinshost.local
运行良好。
/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
。 翻译:原来这个文件只在运行时存在。实际使用的配置文件位于/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
。 - Mark Norgrenbrew services
时,请勿编辑/Users/admin/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
。LaunchAgent plist文件将被复制到/覆盖为brew services
中链接到的/usr/local/opt/jenkins
的/usr/local/Cellar/jenkins/2.xxx/homebrew.mxcl.jenkins.plist
版本的文件中。 - George Pantazes