I want to start Jenkins on 9090,
I searched for it and I saw the solutions: like in this post
And as in the answer I start it with
java -jar jenkins.war --httpPort=9090
It worked good. But, when I stop Jenkins with the command
jenkins.exe stop
And start it again with command:
jenkins.exe start
It starts on 8080 instead of 9090 again. Whenever I run it with java -jar jenkins.war --httpPort=9090
everytime I need to install jenkins again and again. I just want to use simple start and stop commands as in the example without going to 8080.
Why does it happen or how can I configure it to start and stop with jenkins.exe start/stop
always on 9090 ?
Note:I am using Windows