投票node
对于面对此问题的其余用户:linux
您必须添加forever模块的路径,而后以cronjob的形式运行该脚本。table
在linux中的路径一般是:module
/ usr / local / lib / node_modules / forever / bin / forever start file.jsfile
只需在你的脚本中使用这个命令,永远的错误就是:找不到命令不会打扰你的。脚本