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

后端 未结 16 950
我在风中等你
我在风中等你 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:10

    Open Command Prompt as Administrator in Windows . Go to the directory where Jenkins is installed. and stop the Jenkins service first, using jenkins.exe stop

    type the command to change the port using, java -jar jenkins.war --httpPort=9090 (enter the port number you want to use).

    and at-last, restart the Jenkins services, using jenkins.exe restart

提交回复
热议问题