How to start jenkins on different port rather than 8080 using command prompt in Windows?

后端 未结 16 916
我在风中等你
我在风中等你 2020-12-04 08:02

I have jenkins.war and I started it from command prompt in Windows as:

java -jar jenkins.war

It was started well and easily browsed as

16条回答
  •  再見小時候
    2020-12-04 08:14

    To change the default port of 8080. All you need to do:

    1. Goto Jenkins folder present in C:\Program Files (x86)
    2. Open a notepad or text pad and run them as administrator and then try opening the jenkins.xml file present in the jenkins folder.
    3. Change the port number as below: -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9090
    4. Click Save.

提交回复
热议问题