终端关闭后程序依然运行
侧边栏壁纸
  • 累计撰写 185 篇文章
  • 累计收到 24 条评论

终端关闭后程序依然运行

五好
2018-11-10 / 0 评论 / 719 阅读 / 正在检测是否收录...
nohup cmd &
nohup: ignoring input and appending output to 'nohup.out'

运行上面的命令后 会提示 当前目录下有一个 nohup.out的文件,保存追加输出的信息到该文件
nohup 命令的解释

用法:nohup 命令 [参数]...
 或:nohup 选项
忽略挂起信号运行指定的命令。

      --help        显示此帮助信息并退出
      --version        显示版本信息并退出

If standard input is a terminal, redirect it from an unreadable file.
If standard output is a terminal, append output to 'nohup.out' if possible,
'$HOME/nohup.out' otherwise.
If standard error is a terminal, redirect it to standard output.
To save output to FILE, use 'nohup COMMAND > FILE'.
0

评论 (0)

取消