Browse Source

更新 '_posts/Linux-nohup.md'

aaronwei 3 years ago
parent
commit
f3a0e27b24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      _posts/Linux-nohup.md

+ 1 - 1
_posts/Linux-nohup.md

@@ -72,5 +72,5 @@ CTRL-z 的用途就是将当前进程挂起(Suspend),然后我们就可以
 而使用了 screen 后就不同了,此时 bash 是 screen 的子进程,而 screen 是 init(PID为1)的子进程。那么当 ssh 断开连接时,HUP 信号自然不会影响到 screen 下面的子进程了。
 
 现在几种方法已经介绍完毕,我们可以根据不同的场景来选择不同的方案。nohup/setsid 无疑是临时需要时最方便的方法,disown 能帮助我们来事后补救当前已经在运行了的作业,而 screen 则是在大批量操作时不二的选择了。
-
+----