How do I run a Jenkins port on a different port?
Asked By: Abelio Luether | Last Updated: 12th May, 2020
Category: technology and computing browsers
Using different ports for Jenkins
- Go to the Program Files/Jenkins directory where you installed Jenkins.
- Open the Jenkins.xml in the editor.
- Find " --httpPort=8080 " and replace the port 8080 with the new port number.
Keeping this in view, what port is Jenkins running on?
Also, how do I change the default Jenkins port in Windows? How to change the default port in Jenkins
- Go to C:Program Files (x86)Jenkins (I'm using Windows Server 2012 and assuming it's installed to default location)
- Open Jenkins.xml.
- Edit the –httpPort argument (you may need to edit default permissions)
- Restart the Jenkins service.
- Now Jenkins will permanently use the new port.
Similarly, how do I change my local Jenkins port?
- Go to the directory where you installed Jenkins (by default, it's under Program Files/Jenkins)
- Open the Jenkins.xml configuration file.
- Search --httpPort=8080 and replace the 8080 with the new port number that you wish.
- Restart Jenkins for changes to take effect.
How do I change my Jenkins port from 8080 to 80?
- Go to /etc/default folder --> Open the file "jenkins"
- Modify the line HTTP_PORT=8080 as HTTP_PORT=80.
- Start jenkins as root by using the command: sudo /etc/init.d/jenkins start.
- Open a browser and browse as localhost:80.