使用Hudson,运行java -jar hudson-3.0.0-bundled.war -httpPort=8000
。我和Jenkins一样尝试过,但它仍然在端口8080上运行:
$ java -jar jenkins.war -httpPort=8000
Running from: /home/user/jenkins/jenkins.war
webroot: $user.home/.jenkins
Sep 25, 2013 12:22:14 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jenkins home directory: /home/user/.jenkins found at: $user.home/.jenkins
Sep 25, 2013 12:22:15 PM winstone.Logger logInternal
INFO: HTTP Listener started: port=8080
答案 0 :(得分:3)
命令行中缺少“ - ”。 来自jenkins wiki:“ - httpPort = $ HTTP_PORT”
因此请使用java -jar jenkins.war --httpPort=8000
代替java -jar jenkins.war -httpPort=8000
答案 1 :(得分:1)
检查我的jenkins init文件我认为你需要--httpPort = $ JENKINS_PORT。你在httpPort之前试过两次破折号吗?
端口8000是否是一个明智的选择是另一个问题!