安裝:
sudo apt-get install screen
使用:
1.執行如下命令,創建screen窗口。
screen -S [$Name]
注:[$Name]用來標注screen窗口用途。
2.執行如下命令,列出screen窗口。
screen -ls
3.當需要運行腳本、執行程序時,在命令前添加screen即可。
4.若需要繼續工作時,登錄實例,然后執行如下命令,恢復會話即可。
screen -r -d PID
參考:
https://help.aliyun.com/knowledge_detail/42523.html?spm=5176.2000002.0.0.616d7b0fuIjmqa
https://blog.csdn.net/floraruo/article/details/105334616