简体   繁体   English

无法远程访问詹金斯

[英]Can't access jenkins remotely

I installed jenkins on my remote server.我在远程服务器上安装了 jenkins。

If I do at the server:如果我在服务器上这样做:

wget http://server.url:8080

I get the page without any problem.我得到的页面没有任何问题。 At my computer, I get that:在我的电脑上,我明白了:

--2014-01-09 14:11:33--  http://server.url:8080/
Resolving server.url (server.url)... 54.205.148.55
Connecting to server.url (server.url)|54.205.148.55|:8080... faied: Connection timed out.
Retrying.

I already tried changing --httpListenAddress= parameter at config file (I set it to 0.0.0.0) and nothing happens.我已经尝试在配置文件中更改 --httpListenAddress= 参数(我将其设置为 0.0.0.0),但没有任何反应。 It's installed on an Ubuntu 12.04 and it has Apache running on port 80.它安装在 Ubuntu 12.04 上,Apache 在端口 80 上运行。

Any idea?任何的想法?

Thanks!谢谢!

EDIT: I also tried with no result disabling iptables and ufw.编辑:我也尝试过禁用 iptables 和 ufw,但没有结果。

From your output it looks like you are trying to connect on port 8080, but you said that you have apache listening on port 80.从您的输出来看,您似乎正在尝试在端口 8080 上进行连接,但您说您有 apache 正在侦听端口 80。

If the port mis-match is not the issue it is probably another firewall blocking your traffic.如果端口不匹配不是问题,则可能是另一个防火墙阻止了您的流量。

Can you run a telnet from your computer to the jenkins server and see if you can connect?您可以从您的计算机运行 telnet 到 jenkins 服务器并查看是否可以连接吗?

telnet 54.205.148.55 8080

or或者

telnet 54.205.148.55 80

depedning on which port you are actually listening on.取决于您实际侦听的端口。

Can you check the bind IP address of Jenkins, if you want to access your Jenkins from outside it should be 0.0.0.0:8080 or YOUR_SERVER_IP:8080你能检查一下Jenkins的绑定IP地址吗,如果你想从外部访问你的Jenkins,它应该是0.0.0.0:8080YOUR_SERVER_IP:8080

Check using the command: netstat -tunlp使用命令检查: netstat -tunlp

Stop the firewall: systemctl stop ufw停止防火墙: systemctl stop ufw

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM