screen- run in the background so that the jar package

1、安装screen:yum install screen

2, view screen if the installation was successful: rpm -qa | grep screen

3. Create a screen: screen -S screen name

4, run jar package: java -jar package name

5, ctrl + A + D to exit the current window

6, jar that is running in the background

Note: ①screen -ls View the background screen

  ②screen -r 27379 (screen number) into the screen

 

Guess you like

Origin www.cnblogs.com/hucheng1997/p/11204462.html