RCBian RCBian - 1 year ago 266
Linux Question

how to change port number for Jenkins installation In Ubuntu 12.04

I am trying to install jenkins in ubuntu. I have followed the commands below:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list


apt-get update


apt-get install jenkins

but It shows

  • Starting Jenkins Continuous Integration Server Jenkins The selected http port (8080) seems to be in use by another program
    Please select another port to use for jenkins

Need help on how to set a different port for Jenkins to run.

Answer Source

You can go to /etc/default/jenkins and add --httpPort=9999 or whatever port to JENKINS_ARGS.

Then you should restart Jenkins with sudo service jenkins restart.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download