1、ctrl+z 先放到後臺
[1]+ Stopped ./test.sh
2、bg %1 放入到後臺添加&
3、disown -h %1 使後臺進程1忽略HUP信號
4、現在執行logout或者直接關閉ssh客戶端進程也會在後臺繼續執行了
5、使用screen,進入後按Ctrl+A D退出
6、一個終端使用screen -S hello,另外一個使用 screen -x hello 可以看到相同屏幕,並同時可以操作
1、ctrl+z 先放到後臺
[1]+ Stopped ./test.sh
2、bg %1 放入到後臺添加&
3、disown -h %1 使後臺進程1忽略HUP信號
4、現在執行logout或者直接關閉ssh客戶端進程也會在後臺繼續執行了
5、使用screen,進入後按Ctrl+A D退出
6、一個終端使用screen -S hello,另外一個使用 screen -x hello 可以看到相同屏幕,並同時可以操作