How to restart Jenkins in Windows

Rodger Nadal picture Rodger Nadal · May 25, 2017 · Viewed 20.7k times · Source

Not able to restart Jenkins manually. Already tried all below ways:

  1. http://localhost:8080/safeRestart
    Error message: Jenkins cannot restart itself as currently configured.

  2. Manage Jenkins → Restart Safely Plugin.
    Error message: Jenkins cannot restart itself as currently configured.

  3. Not able to find any Jenkins Service in services.msc.

  4. Navigate to jenkins-cli directory in CMD mode

    java -jar jenkins-cli.jar -s http://[jenkins-server]/ restart
    

    See below screenshot for error message:

    x

Answer

Hoang picture Hoang · Aug 15, 2018

Use command line to stop and start

net stop jenkins
net start jenkins