Running jars under Linux

Source: Internet
Author: User

1: Java-jar test.jar  or Java-jar test.jar parameter 1 parameter 2 parameter 3   // This mode is characterized by the ssh window is closed, The program stops running. Or the runtime can't cut out to perform other tasks.  2: Nohup java-jar Test.jar &   //nohup means do not hang up the Run command when the account exits or the terminal shuts down, the   program still runs // When a job is executed with the nohup command, all output from the job is redirected to the Nohup.out file by default, unless the output file is specified separately.  3: Nohup java-jar test.jar >temp.txt &   // background run, and input log file into the file you specified, No, it is automatically created

Running jars under Linux

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.