Linux Startup Project

Source: Internet
Author: User

1.java-jar Shareniu.jar The current SSH window is locked, you can press CTRL + C to interrupt the program to run, or close the window directly, the program exits.

2.java-jar Shareniu.jar & the current SSH window is not locked, but when the window is closed, the program stops running.

3.nohup Java-jar Shareniu.jar & Nohup means that the Run command is not hung up and the program is still running when the account exits or the terminal shuts down, and the output is redirected to the Nohup.out file.

4.nohup Java-jar Shareniu.jar >temp.txt &

5. The jobs command can be used to view the background running tasks, then all the work performed in the background is listed, and each job has a number in front of it, if you want to bring a job back to the foreground control, only the FG + number is required.

Linux Startup Project

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.