1. 程式人生 > >Linux screen模式下執行檔案

Linux screen模式下執行檔案

linux screen下執行檔案 screen下執行檔案: screen → 執行 php ***.php > ***.log 退出執行介面: ctrl+A → D 實時檢視日誌檔案內容:tail -f ***.log 列出所有screen程序: screen -ls 檢視單個程序: screen -r +程序id 關閉當前程序: exit  殺死一個已經detached的screen會話
There are screens on:
9975.pts-0.localhost (Detached)
4588.pts-3.localhost (Detached)
2 Sockets in /var/run/screen/S-root.



There is a screen on:
9975.pts-0.localhost (Detached)
1 Socket in /var/run/screen/S-root.