1. 配置節點,配置好節點后,在節點機上運行已下載文件,雙擊執行,提示“The Server rejected the connection: None of the protocols were accepted”錯誤
發現是自己生成.jnlp的文件錯誤了,如下圖,我訪問Jenkins是使用的localhost.在生成.jnlp或者是jar文件時,文件路徑也是localhost,導致我執行它生成好的jar包或者是launch文件,下載都會提示是從localhost:8080下載,這樣是錯誤的,就會出現那個問題
解決方案:
使用IP去訪問Jenkins,我使用的是launch執行節點
在節點分機上執行,執行成功