Recently, I encountered some problems in the graduation project using Aliyun's Linux cloud service. After I uploaded the java jar running program, the java -jar server
program started to run normally after using the command, but when I closed the terminal, the program also closed. How can it be, then I googled it. I found that there is something called screen
, I will make a simple section about these contents below, write it down, and use it later
Open a screen conversation
screen 'name'
Browse the current screen conversation
screen -ls
close screen dialog
screen -X -S name quit
Resume last screen conversation
screen -r
I basically used the above instructions and my current one is enough.