Summary of jetty server startup methods [standby], jetty Server

Source: Internet
Author: User

Summary of jetty server startup methods [standby], jetty Server

1. Use the Java command to start

Java-jar start. jar

Ctrl + c close

Terminal window always exists

 

2. Use the Java command to start 2

Java-jar start. jar &

After the startup is successful, press enter to run it in the background.

To view the console information, enter the jetty and directory, and a nohup. out is generated.

Run tail-f nohup. out.

 

3. Use the Java command to start 3

Java-DSTOP. PORT = 8009-DSTOP. KEY = secret-jar start. jar start

Java-DSTOP. PORT = 8009-DSTOP. KEY = secret-jar start. jar -- stop close

You can stop the jetty service in another terminal window of the local machine.

In linux, You can first transfer the jetty process to the background for execution, and then stop the Jetty service through the command line.

 

4. Start in the background

./Bin/jetty. sh start

./Bin/jetty. sh stop close

Terminal window can be closed

Related Article

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.