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,280 points
1,049 views

1 answer 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,410 points

Related Questions In Jenkins

0 votes
1 answer

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

Yes this is possible. Follow these steps. 1. ...READ MORE

answered Jun 20 in Jenkins by Arvind
• 1,370 points
47 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
147 views
0 votes
1 answer

How to get the Maven Version of a project in Jenkins?

Follow the below steps: 1.      Install the Groovy ...READ MORE

answered Aug 9, 2018 in Jenkins by Sophie may
• 9,410 points
350 views
+13 votes
2 answers
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,410 points
148 views
0 votes
1 answer

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
• 9,410 points
2,060 views