How to start Jenkins on a different port rather than 8080?

0 votes
I am facing an error every time I start Jenkins on the 8080 port. Is there a way to run the same Jenkins instance on another port?
Jul 4, 2018 in Jenkins by Tyrion anex
• 8,380 points
8,035 views

2 answers to this question.

0 votes

This is simple, use the following command:

java -jar jenkins.war --httpPort='xyz'

For https,

java -jar jenkins.war --httpsPort='xyz'


Finally, restart the service, this should change the port permanently.

answered Jul 4, 2018 by Sophie may
• 9,940 points
0 votes

In case you want to change the default jenkins port on Linux,

  • You can go to /etc/default/jenkins  

  • add --httpPort=9999 or whatever port to JENKINS_ARGS.

  • Then you should restart Jenkins with sudo service jenkins restart.

answered Jul 31, 2019 by Sirajul
• 54,020 points

Related Questions In Jenkins

+1 vote
4 answers
0 votes
2 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 54,020 points
6,093 views
0 votes
1 answer

how to create a job using jenkins for Sign the puppet certificate on master ?

Take a look at this  https://fullstack-puppet-docs.readthedoc ...READ MORE

answered May 29 in Jenkins by Sirajul
• 54,020 points
62 views
0 votes
1 answer

How to rebuild an item on Jenkins pipeline

Yes you can, its pretty simple actually. Go ...READ MORE

answered Jul 10, 2018 in Jenkins by Kalgi
• 2,620 points
795 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
536 views
0 votes
1 answer
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,940 points
768 views
+2 votes
2 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

If you are talking about executing another ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 54,020 points
21,850 views