配置Jenkins Mac OS X本机软件包以在其他端口中运行 [英] Configure Jenkins Mac OS X native package to run in a different port

查看:90
本文介绍了配置Jenkins Mac OS X本机软件包以在其他端口中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Jenkins native Mac OS package installs by default in /Users/Shared/Jenkins and the war in /Applications/Jenkins. It runs as a daemon and restarts automatically in spite of a kill -9 command.

我用单个道具httpPort=9999/Applications/Jenkins中添加了winstone.properties.

I added a winstone.properties in /Applications/Jenkins with a single prop, httpPort=9999.

静止应用程序从8080开始.

Still app starts on 8080.

我什至安装了CLI并尝试:

I even installed CLI and tried:

    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和/或配置(尽管可以通过手动操作,但使用战争).

In short, I can't force stop/start Jenkins and/or configure (I can via manual procedure, using a war though).

建议? 知道如何配置Jenkins

Suggestions? Any idea how to configure the Jenkins

推荐答案

尝试:

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

要检查其是否有效,请使用:

To check that it has worked use:

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

然后杀死Jenkins进程并重新启动.

Then kill the Jenkins process and let it restart.

这篇关于配置Jenkins Mac OS X本机软件包以在其他端口中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆