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.exe stop
to start:jenkins.exe start
to restart:jenkins.exe restart
To stop JenkinsPlease avoid shutting down the Java process or the Windows service. These are not usual commands. Use those only if your Jenkins is causing problems.
Use Jenkins' way to stop that protects from data loss.
http://[jenkins-server]/[command]
where [command] can be any one of the following
- exit
- restart
- reload
Example: if my local PC is running Jenkins at port 8080, it will be
http://localhost:8080/exit
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
To stop
Ctrl + C