1.安裝(命令行執(zhí)行任務(wù))
CentOS 系列系統(tǒng): yum install screen
Ubuntu 系列系統(tǒng): sudo apt-get install screen
2.給窗口一個名字
screen -S name
3.在新打開的窗口運(yùn)行自己的程序
4.保存
ctrl+a 再按d
5.可以退出session了
6.screen -r name 恢復(fù)
如果要刪除窗口的話就殺死相應(yīng)的進(jìn)程
然后screen -wipe