Tom Johns
Tom Johns

Reputation: 985

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?

Upvotes: 0

Views: 1060

Answers (2)

Vimal Mathew
Vimal Mathew

Reputation: 575

Add the following two lines after DAEMON_ARGS in the file

/etc/init.d/jenkins

HTTP_PORT=8010  <br/>
JENKINS_ARGS="--httpPort=$HTTP_PORT"

Upvotes: 0

ohamada
ohamada

Reputation: 101

Check /etc/default/jenkins - it works for Debian, i suppose it's same on Ubuntu

Installing jenkins on ubuntu

Upvotes: 1

Related Questions