gpt4 book ai didi

jar - 由于端口原因,Jenkins 不会启动 - 不会接受命令行端口更改或配置文件

转载 作者:行者123 更新时间:2023-12-04 02:46:19 27 4
gpt4 key购买 nike

我在打电话

 java -jar /jenkins/jenkins.war -httpPort=8088

并且还在/etc/sysconfig/jenkins 中设置了 http 端口到 8088

但我不断得到

SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.HttpListener
at winstone.Launcher.spawnListener(Launcher.java:229)
at winstone.Launcher.<init>(Launcher.java:181)
at winstone.Launcher.main(Launcher.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:288)
at Main.main(Main.java:98)
Caused by: java.io.IOException: Failed to listen on port 8080
at winstone.HttpListener.getServerSocket(HttpListener.java:122)
at winstone.HttpListener.start(HttpListener.java:75)
at winstone.Launcher.spawnListener(Launcher.java:220)
... 8 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at java.net.ServerSocket.<init>(ServerSocket.java:181)
at winstone.HttpListener.getServerSocket(HttpListener.java:117)
... 10 more

我在这里撕毁我的头发不明白为什么它一直在尝试 8080

最佳答案

尝试--httpPort,另见Starting and Accessing Jenkins .

关于jar - 由于端口原因,Jenkins 不会启动 - 不会接受命令行端口更改或配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18772259/

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