如标题中所述,我在端口8080上运行了一个Jenkins服务。当我在机器浏览器中的localhost:8080上运行时,就可以很好地使用Jenkins。
我面临的问题是当我尝试通过网络访问Jenkins时。我注意到了一些奇怪的事情:
1。)通过网络,我可以将ssh和VNC插入计算机。 (如netstat中所述)
2。)在计算机上运行netstat命令时,看到了VNC SSH侦听。但Jenkins不在8080端口上监听。
我如何让Jenkins看起来正在netstat的8080端口上监听?我已经检查了系统防火墙,它已关闭。并检查了网络防火墙规则,没有干扰。
还有什么罪魁祸首?
netstat -ap tcp | grep -i "listen"
tcp4 0 0 localhost.ipp *.* LISTEN
tcp6 0 0 localhost.ipp *.* LISTEN
tcp46 0 0 *.http-alt *.* LISTEN
tcp46 0 0 *.49341 *.* LISTEN
tcp46 0 0 *.49336 *.* LISTEN
tcp4 0 0 localhost.9085 *.* LISTEN
tcp6 0 0 *.49266 *.* LISTEN
tcp4 0 0 *.49266 *.* LISTEN
tcp46 0 0 *.18170 *.* LISTEN
tcp4 0 0 localhost.62722 *.* LISTEN
tcp6 0 0 localhost.commplex-lin *.* LISTEN
tcp4 0 0 localhost.commplex-lin *.* LISTEN
tcp4 0 0 localhost.60014 *.* LISTEN
tcp46 0 0 *.camp *.* LISTEN
tcp4 0 0 *.camp *.* LISTEN
tcp46 0 0 *.sunproxyadmin *.* LISTEN
tcp4 0 0 localhost.29754 *.* LISTEN
tcp4 0 0 localhost.1023 *.* LISTEN
tcp4 0 0 *.kerberos *.* LISTEN
tcp6 0 0 *.kerberos *.* LISTEN
tcp4 0 0 *.bhmds *.* LISTEN
tcp4 0 0 *.sco-sysmgr *.* LISTEN
tcp6 0 0 *.sco-sysmgr *.* LISTEN
tcp4 0 0 *.ms-wbt-server *.* LISTEN
tcp6 0 0 *.ms-wbt-server *.* LISTEN
tcp4 0 0 *.afpovertcp *.* LISTEN
tcp6 0 0 *.afpovertcp *.* LISTEN
tcp4 0 0 localhost.intu-ec-clie *.* LISTEN
tcp6 0 0 localhost.intu-ec-clie *.* LISTEN
tcp4 0 0 *.microsoft-ds *.* LISTEN
tcp6 0 0 *.microsoft-ds *.* LISTEN
tcp4 0 0 *.rfb *.* LISTEN
tcp6 0 0 *.rfb *.* LISTEN
tcp4 0 0 *.dec_dlm *.* LISTEN
tcp6 0 0 *.dec_dlm *.* LISTEN
tcp4 0 0 *.eppc *.* LISTEN
tcp6 0 0 *.eppc *.* LISTEN
tcp4 0 0 *.ssh *.* LISTEN
tcp6 0 0 *.ssh *.* LISTEN
答案 0 :(得分:0)
很难弄清楚这一点。原来,这是阻止与服务通信的第三方防火墙!
我调试它的方式是,我启动了一个VM,从developer.apple.com下载了股票并运行了它。几分钟之内,我就可以正常运行在VM上启动的服务。