Jenkins four: Start off and restart Jenkins

Source: Internet
Author: User
Start

1. Create a new Jenkins.bat file on the desktop. The contents are as follows:

CD /d%jenkins_home%java-jar%jenkins_home%\jenkins.war--httpport=8080

2. Double-click on Jenkins.bat to start Jenkins.

3. See "Information: Jenkins is fully up and running", stating that the startup was successful.

Note:

Since the Jenkins_home value is set to the path of JENKINS in the environment variable, there is no need to set it up.

If you need to start Jenkins on a different port, change the –httpport=yourport.

The benefits of starting with a bat file are convenient, and the second is not easy to make mistakes.

Shut down

Use the Jenkins CLI to turn Jenkins off.

Reference Note: Jenkins III: Jenkins CLI

The command is:

Java-jar jenkins-cli.jar-s Http://localhost:8080/shutdown
Restart

Use the Jenkins CLI to restart Jenkins.

Reference Note: Jenkins III: Jenkins CLI

The command is:

Java-jar jenkins-cli.jar-s Http://localhost:8080/restart

Jenkins four: Start off and restart Jenkins

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.