The usage of the screen command under Linux

        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 serverprogram 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324935769&siteId=291194637