简体   繁体   English

为什么我无法远程访问Jenkins?

[英]Why am I not able to access Jenkins remotely?

My jenkins has suddenly stopped being accessed from a remote machine. 我的詹金斯突然停止从远程计算机进行访问。 I have tried the following command to open it from another machines: 我尝试了以下命令从另一台计算机打开它:

java -jar jenkins.war --httpPort=8085 --httpListenAddresss=0.0.0.0

and then I am tried to open it using http://hostname:8085 And http://ip:8085 but I am not able to access it. 然后尝试使用http://主机名:8085http:// ip:8085打开它,但我无法访问它。 To launch the slave on other machine I need to have access to that url. 要在其他机器上启动slave,我需要访问该URL。

note: I am able to ping to my host name from any remote machine. 注意:我可以从任何远程计算机ping我的主机名。 I given access to all inbound and outbound connections from my firewall 我可以从防火墙访问所有入站和出站连接

You can see the correct URL in Nodes view: 您可以在“节点”视图中看到正确的URL:

  • Create dummy node with "Launch method" = "Launch agent via Java Web Start" 使用“启动方法” =“通过Java Web Start启动代理”创建虚拟节点
  • Save it 保存
  • Choose this 'dummy' node 选择此“虚拟”节点
  • Jenkins should show you a command line with correct URL, ie Jenkins应该向您显示带有正确URL的命令行,即

java -jar slave.jar -jnlpUrl http://myjenkinsserver:8080/computer/dummy/slave-agent.jnlp -secret c159219e557d0e612371b97d86f9a319584cf1c53b8ab9df73f34b46eed8865c

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

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