简体   繁体   中英

Jenkins on different port rather than 8080 in Ubuntu

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

Installing jenkins 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM