How do I run a Jenkins port on a different port?
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?
8080
- 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?
12 Answers
- 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.
- 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.