小编Kev*_*oyd的帖子

长时间运行的进程和守护进程之间的区别?

我正在尝试使用Forever来保持我的 Nodejs 脚本正常运行

根据 Forever 的主页,它说

  [Long Running Process]
    The forever process will continue to run outputting log messages to the console.
    ex. forever -o out.log -e err.log my-script.js

  [Daemon]
    The forever process will run as a daemon which will make the target process start
    in the background. This is extremely useful for remote starting simple node.js scripts
    without using nohup. It is recommended to run start with -o -l, & -e.
    ex. forever start -l forever.log -o …
Run Code Online (Sandbox Code Playgroud)

linux daemon node.js

4
推荐指数
1
解决办法
2696
查看次数

标签 统计

daemon ×1

linux ×1

node.js ×1