Mac jenkins输入http://localhost:8080 提示无法访问的解决

有同事想学习jenkins安装和配置使用,来问我,我之前安装并使用过,输入http://localhost:8080之后发现无法访问了,究其缘由推测是我电脑的ip地址变了,而原来的http://localhost:8080绑定的是之前的ip地址,导致无法访问,这里需要将http://localhost:8080绑定到目前的ip地址,话不多说,直接看修改
1、第一看目前的ip地址
点击设置-网络,就可看到本机的IP地址

2、配置hosts文件

  具体hosts文件地址,/etc/即可看到 添加192.168.83.89 localhost

3、修改.jenkins文件中的jenkins.model.JenkinsLocationConfiguration.xml文件的jenkinsUrl为ip:8080

4、修改/usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist 文件中的–httpListenAddress=ip

5、重启jenkins brew services restart jenkins

再次输入http://localhost:8080 发现可以登录了,到此问题解决

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
应运而生的头像 - 鹿快
评论 共2条

请登录后发表评论