解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”

时间:2022-03-05 08:35:51

1. 配置节点,配置好节点后,在节点机上运行已下载解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”文件,双击执行,提示“The Server rejected the connection: None of the protocols were accepted”错误

解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”

发现是自己生成.jnlp的文件错误了,如下图,我访问Jenkins是使用的localhost.在生成.jnlp或者是jar文件时,文件路径也是localhost,导致我执行它生成好的jar包或者是launch文件,下载都会提示是从localhost:8080下载,这样是错误的,就会出现那个问题

解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”

解决方案:

使用IP去访问Jenkins,我使用的是launch执行节点

解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”

在节点分机上执行,执行成功

解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”