有時候會需要一些程序背景執行,此處針對各種情況記錄一下 nohup指令: setsid指令: &: 通過screen等指令: 通過ctrl+z,bg,fg,disown reptyr指令+screen指令配合使用: