I see the option to change Jenkins HTTP port is by passing --httpPort=$HTTP_PORT when Jenkins is started. In Ubuntu the default installation, Jenkins is launched as a daemon up on start. Where do I set -httpPort in Ubuntu?
Check /etc/default/jenkins - it works for Debian, i suppose it's same on Ubuntu
Add the following two lines after DAEMON_ARGS in the file
/etc/init.d/jenkins
HTTP_PORT=8010 <br/>
JENKINS_ARGS="--httpPort=$HTTP_PORT"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.