【问题标题】:How do I keep programs in CentOS7? [closed]如何在 CentOS7 中保存程序? [关闭]
【发布时间】:2017-11-16 13:20:04
【问题描述】:

我是使用 Linux 的初学者。 我已经通过 Windows 终端在服务器中运行程序。

# gitbook build &
# ng serve &

但是当我退出终端窗口时,它以 gitbook,anguler 结束。 我怎样才能让它继续下去? 我想知道最常用的方法。

【问题讨论】:

  • nohup gitbook build &gitbook build &; disown?另请参阅How can I close a terminal without killing the command running in it?
  • 命令也终止了。对不起,我没有正确地回答问题。我已经通过 Windows 终端在服务器中运行程序。但是,当我关闭终端窗口时,所有程序都一起结束了。看起来您正在使用永久、pm2 或注册服务之类的工具。
  • @birryree 谢谢。我可以解决它。

标签: linux angular background gitbook


【解决方案1】:

尝试使用nohup 运行,它会运行一个不受挂断影响的命令:

nohup gitbook build > /dev/null

nohup gitbook build > /dev/null &

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-19
    • 1970-01-01
    • 1970-01-01
    • 2011-10-04
    • 2022-11-23
    • 1970-01-01
    相关资源
    最近更新 更多