Start/Stop and Restart Jenkins service on Windows

前端 未结 8 1556
渐次进展
渐次进展 2020-12-02 05:19

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

相关标签:
8条回答
  • 2020-12-02 05:56

    Step 01: You need to add jenkins for environment variables, Then you can use jenkins commands

    Step 02: Go to "C:\Program Files (x86)\Jenkins" with admin prompt

    Step 03: Choose your option: jenkins.exe stop / jenkins.exe start / jenkins.exe restart

    0 讨论(0)
  • 2020-12-02 05:57

    So by default you can open CMD and write

    java -jar jenkins.war
    

    But if your port 8080 is already is in use,so you have to change the Jenkins port number, so for that open Jenkins folder in Program File and open Jenkins.XML file and change the port number such as 8088

    Now Open CMD and write

    java -jar jenkins.war --httpPort=8088
    
    0 讨论(0)
  • 2020-12-02 05:59

    To Start Jenkins through Command Line

    1. Run CMD with admin

    2. You can run following commands

      "net start servicename" to start

      "net restart servicename" to restart

      "net stop servicename" to stop service

    for more reference https://www.windows-commandline.com/start-stop-service-command-line/

    0 讨论(0)
  • 2020-12-02 06:06
           jenkins.exe stop
           jenkins.exe start
           jenkins.exe restart
    

    These commands will work from cmd only if you run CMD with admin permissions

    0 讨论(0)
  • 2020-12-02 06:07

    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

    0 讨论(0)
  • 2020-12-02 06:12

    Small hints for routine work.

    Create a bat file, name it and use for exact run/stop/restart Jenkins service

    #!/bin/bash
    # go to Jenkins folder
    cd C:\Program Files (x86)\Jenkins
    
    #to stop:
    jenkins.exe stop
    
    #to start:
    #jenkins.exe start
    
    #to restart:
    #jenkins.exe restart
    
    0 讨论(0)
提交回复
热议问题