1. When you run the Jar file on the linux server usual method is:
$ java -jar test.jar
Ssh this way when the window is closed, the program is terminated or is not cut out to run other tasks
2. Keep the program running in the background
$ nohup java -jar test.jar &
3. Run the log input to temp.txt
$ nohup java -jar test.jar >log_airpurification_device.txt &
4. Query the currently active processes
ps -aux | grep java
5. Close the process
kill -9 pid
6. The detail information linux system memory size, can view the total memory, remaining memory, the memory may use other information
cat / proc / meminfo