对于哈德森来说,跑步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