从站无法连接到主站 [英] Slave cannot connect to Master

查看:247
本文介绍了从站无法连接到主站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将笔记本电脑配置为从属设备,而我的主设备将是安装Jenkins的服务器.我遵循了 http://master:8080/computer/Slave/slave-agent .jnlp

我对网络等领域还是陌生的,所以能启发我吗?

我设法到达该页面,而不是用户master:8080,我尝试使用服务器的IP并成功了!

但是现在启动代理程序时,我出现了一个错误:

java.net.ConnectException:连接被拒绝:

问题来自哪里?

解决方案

我发现了问题:在Jenkins主配置中,在Jenkins URL中,而不是"localhost:8080"中,我放置了服务器的IP( http://[ip_server]:8080/),现在我可以通过各种方式将我的奴隶连接到我的主人了. /p>

I'm trying to configure my laptop as a slave, my master would be a server where Jenkins is installed. I've followed these instructions.

However, when it comes to access http://master:8080/ from my slave's browser, internet cannot display the webpage.

So I tried the second way, by writing javaws http://master:8080/computer/Slave/slave-agent.jnlp in the cmd prompt and this time I have this error:

Could not load file/URL specified: http://master:8080/computer/Slave/slave-agent.jnlp

I am new to stuff with network etc so can you enlighten me?

EDIT: I manage to reach the page, instead of user master:8080, I tried with the IP of the server and it worked!

But now when I launch the agent, I have an error saying:

java.net.ConnectException: Connection refused:

Where does the problem come from?

解决方案

I found the problem: in Jenkins Master Configuration, in Jenkins URL, instead of "localhost:8080", I put the IP of the server (http://[ip_server]:8080/) and now I can connect my slave to my master by using each way.

这篇关于从站无法连接到主站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆