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.
You can find this file in the Jenkins install folder (the default path is C:\Program Files\Jenkins\jenkins. xml). Open the file using a text editor such as Notepad or Notepad++. Scroll down until you find the line that contains --httpPort=8080 and change the number to the port you want to set.
Runs Jenkins listener on port $HTTP_PORT using standard http protocol. The default is port 8080. To disable (because you're using https), use port -1 . This option does not impact the root URL being generated within Jenkins logic (UI, inbound agent files, etc.).
When you install Jenkins, by default the Jenkins service runs on port 8080. Also, there is no direct option to run Jenkins on port 80. In this tutorial, we have explained the steps to setup Jenkins access on port 80.
Host your Jenkins on a docker container and map the port 80 on your docker host daemon to 8080 on the container. You can use docker run command to start jenkins along with the -p argument to supply port values.
The purpose of the first file is exactly the customization of the second file. So, within /etc/sysconfig/jenkins, there is a the JENKINS_PORT variable that holds the port number on which Jenkins is running.
Use the following command at command prompt: If you want to use https use the following command: @SteveGreen: The above mentioned commands are starting Jenkins from the command line.
Jenkins.xml
configuration file--httpPort=8080
and replace the 8080
with the new port number that you wishJust restart the Jenkins service after you changed the port in jenkins.xml.
Right click on the "Jenkins" line > Restart
Type http://localhost:8081/
in your browser to test the change.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With