小编典典

配置Jenkins Mac OS X本机软件包以在其他端口中运行

jenkins

Jenkins本机Mac
OS软件包默认安装在/Users/Shared/Jenkins,而war则安装在/Applications/Jenkins。它作为守护程序运行,并且尽管有kill -9命令也会自动重新启动。

我加了一个winstone.properties/Applications/Jenkins同一个道具,httpPort=9999

应用仍然从8080开始。

我什至安装了CLI并尝试:

    java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ shutdown

Failed to authenticate with your SSH keys. Proceeding with anonymous access
Sep 19, 2011 1:11:00 PM hudson.remoting.Channel$ReaderThread run
SEVERE: I/O error in channel CLI connection to http://127.0.0.1:8080/
java.io.IOException: Unexpected termination of the channel
    at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093)
Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
    at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087)
Exception in thread "main" hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the 
channel
    at hudson.remoting.Request.call(Request.java:149)
    at hudson.remoting.Channel.call(Channel.java:681)
    at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158)
    at $Proxy2.main(Unknown Source)
    at hudson.cli.CLI.execute(CLI.java:171)
    at hudson.cli.CLI._main(CLI.java:297)
    at hudson.cli.CLI.main(CLI.java:216)
Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel
    at hudson.remoting.Request.abort(Request.java:273)
    at hudson.remoting.Channel.terminate(Channel.java:732)
    at hudson.remoting.Channel$ReaderThread.run(Channel.java:1117)
Caused by: java.io.IOException: Unexpected termination of the channel
    at hudson.remoting.Channel$ReaderThread.run(Channel.java:1093)
Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
    at hudson.remoting.Channel$ReaderThread.run(Channel.java:1087)

简而言之,我无法强制停止/启动Jenkins和/或配置(我可以通过手动操作,但使用war)。

有什么建议吗?任何想法如何配置詹金斯


阅读 269

收藏
2020-07-25

共1个答案

小编典典

尝试:

sudo defaults write /Library/Preferences/org.jenkins-ci httpPort '9999'

要检查它是否起作用,请使用:

defaults read /Library/Preferences/org.jenkins-ci

然后终止Jenkins进程,然后重新启动。

2020-07-25