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?

  • Git: move existing repository from PC to server, clone from server
  • Git: Custom editor opens blank file
  • git commit error: pathspec 'commit' did not match any file(s) known to git
  • How to translate git command line to tortoiseproc?
  • Golang: Executing a command with it's arguments
  • Cloning a Git repo into a new repo - without commit history
  • How can I output from java code to the Jenkins console?
  • Make bash commands to fall back to git commands if git command exists
  • Can I check the existence of a git repo using an SSH URL?
  • Git thinks a commit message is a command not found
  • get the last modification data of a file in git repo
  • Git - How to close commit editor?
  • 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.exe stop

    to start:
    jenkins.exe start

    to restart:
    jenkins.exe restart

    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.

    http://[jenkins-server]/%5Bcommand%5D

    where [command] can be any one of the following

    exit

    restart

    reload

    Example : if my local pc running jenkins at 8080 port, it will be

    http://localhost:8080/exit

    To start Jenkins from command line

    1. Open command prompt
    2. Go to the directory where your war file is placed and run the following command:

      java -jar jenkins.war

    To stop

    Ctrl + C

    Manage Jenkins –> prepare for shutdown.

    Git Baby is a git and github fan, let's start git clone.