Jenkins添加Java Web节点报错:Connection timed out: connect

Jenkins添加Java Web节点报错

E:\jenkins>java -jar agent.jar -jnlpUrl http://192.168.31.88:8081/jenkins/computer/Windows_130/slave-agent.jnlp -secret e7a3c403a1519b98225d3c67e009fa82c8102a4dfb9115dbb101fc8e08f3e2fa -workDir "E:\jenkins"
三月 25, 2022 9:42:31 上午 org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
信息: Using E:\jmeter\remoting as a remoting work directory
三月 25, 2022 9:42:31 上午 org.jenkinsci.remoting.engine.WorkDirManager setupLogging
信息: Both error and output logs will be printed to E:\jmeter\remoting
Failed to obtain http://192.168.31.88:8081/jenkins/computer/Windows_130/slave-agent.jnlp?encrypt=true
java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:513)
        at hudson.remoting.Launcher.run(Launcher.java:347)
        at hudson.remoting.Launcher.main(Launcher.java:298)
Waiting 10 seconds before retry

解决办法:系统管理-->系统配置,ip地址端口一致
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值