Start/Stop and Restart Jenkins service on Windows
I have extracted zip file and installed Jenkins on Windows 7 successfully. Jenkins runs at
http://localhost:8080/ well. I want to stop Jenkins service from console. How can I do that? What’s the way to start and restart through console/command line?
4 Solutions collect form web for “Start/Stop and Restart Jenkins service on Windows”
Open Console/Command line –> Go to your Jenkins installation directory. Execute the following commands respectively:
To stop Jenkins
Please avoid shutting down java process or shutting down windows service. These are not usual commands. Use those only if your Jenkins is causing problem.
Use jenkin’s way to stop that allows protection data loss.
where [command] can be any one of the following
Example : if my local pc running jenkins at 8080 port, it will be
To start Jenkins from command line
- Open command prompt
Go to the directory where your war file is placed and run the following command:
java -jar jenkins.war
Ctrl + C
Manage Jenkins –> prepare for shutdown.