面临使 Windows 从属连接到 Linux 主控的问题。Linux 主机在 Java 8 上,Windows 从机在 Java 7 上。我尝试通过在从机上启动从代理进行连接,它显示连接了一秒钟,但下一秒它说已终止。
在从控制台连接时,以下是日志:
C:\Jenkins>java -jar slave.jar -jnlpUrl http://192.168.172.249:8080/jenkins/comp
uter/192.168.172.133ReconTomcatServer/slave-agent.jnlp
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: 192.168.172.133ReconTomcatServer
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.172.249:8080/jenkins/]
Jun 26, 2017 11:41:55 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver
resolve
INFO: Remoting server accepts the following protocols: [JNLP-connect, CLI2-conne
ct, Ping, CLI-connect, JNLP4-connect, JNLP2-connect]
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
Agent address: 192.168.172.249
Agent port: 41231
Identity: 0a:71:17:09:ae:dc:64:9a:d4:55:ba:c7:c6:43:4a:2c
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.172.249:41231
Jun 26, 2017 11:41:55 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Jun 26, 2017 11:42:01 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 0a:71:17:09:ae:dc:64:9a:d4:55:ba:c7:c6:43:4a:2c
Jun 26, 2017 11:42:01 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Jun 26, 2017 11:42:02 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
有什么我可以检查的。
遵循以下链接中给出的所有步骤: 使用无头 jnlp 将从属连接到主控时显示异常