Search code examples
windowscommand-lineconsolejenkinscommand-prompt

Start/Stop and Restart Jenkins service on Windows


I have downloaded "jenkins-1.501.zip" from http://jenkins-ci.org/content/thank-you-downloading-windows-installer .

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?


Solution

  • Open Console/Command line --> Go to your Jenkins installation directory (very likely cd "C:\Program Files\Jenkins\"). Execute the following commands respectively:

    to stop:
    .\jenkins.exe stop

    to start:
    .\jenkins.exe start

    to restart:
    .\jenkins.exe restart