Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

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

then

apt-get update

and

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.

1 Answer

+1 vote
by (50.2k points)

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

Related questions

0 votes
1 answer
+1 vote
1 answer
asked Aug 24, 2019 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...