gpt4 book ai didi

具有自定义端口的服务器上的 Jenkins 奴隶

转载 作者:行者123 更新时间:2023-12-02 21:14:03 27 4
gpt4 key购买 nike

我已经在 suse 12.1 上安装了 jenkins 并将配置中的端口更改为 8081

/etc/sysconfig/jenkins

JENKINS_PORT="8081"

网络界面在此端口上工作没有任何问题,但是当我想使用 JNLP 启动客户端时,他给了我标准端口:

javaws http://192.168.1.137:8080/computer/192.168.1.190/slave-agent.jnlp

现在我尝试使用正确的端口运行它:

javaws http://192.168.1.137:8081/computer/192.168.1.190/slave-agent.jnlp

但不久之后我收到一个错误:

java.io.FileNotFoundException: http://192.168.1.137:8080/jnlpJars/remoting.jar
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://192.168.1.137:8080/jnlpJars/remoting.jar
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
... 14 more

他尝试了错误的端口。如何正确更改端口?

最佳答案

您是否通过管理 Jenkins → 配置系统 → Jenkins URL 下的配置选项更新了 URL?

关于具有自定义端口的服务器上的 Jenkins 奴隶,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11831886/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com