How to change port for jenkins window service when 8080 is being used
jenkins
Solution
- 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
Problem
I installed Jenkins on a windows virtual server and want to run it as window service. Since the port 8080 is being used by other service, I changed the http port to 8081 in jenkins.xml file. However, I am not able to launch localhost:8081/jenkins at all. I need detail instruction/steps to configure port 8081 or something to run Jenkins.