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,700 points
35,155 views

2 answers to this question.

+1 vote

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
• 10,610 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
• 59,230 points
Jenkins is installed on Linux server still it is not showing the path ..... like /etc/default/????

Hi@Nishant,

It depends on the version to version. In the newer version of Jenkins, you can find the configuration file in the /etc/sysconfig/jenkins file.

Related Questions In Jenkins

+2 votes
4 answers
+1 vote
3 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
• 59,230 points
76,099 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, 2020 in Jenkins by Sirajul
• 59,230 points
848 views
0 votes
1 answer

How to configure Jenkins to run on port 80?

Hi@akhtar, You can change the port no from ...READ MORE

answered Oct 26, 2020 in Jenkins by MD
• 95,440 points
9,947 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,503 views
+2 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
• 10,610 points
3,309 views
+5 votes
3 answers

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

You can run the following code, its ...READ MORE

answered Jul 5, 2018 in Jenkins by Sophie may
• 10,610 points
117,449 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP