注销后如何让foreverjs持续存在?

问题描述 投票:0回答:1

[This article ([1])显示了如何将foreverjs与authbind一起使用,但是我不清楚注销后永久过程是否会持续。

注销后是否有一种使evereverjs持久化的简单方法?

奖金问题:是否有一种简单的方法来使foreverjs在系统重新启动后仍然存在?

[1] https://thomashunter.name/posts/2012-12-14-using-authbind-with-node-js

node.js express forever
1个回答
0
投票

简而言之:

nohup forever ./server-index.js &

或使用authbind:

authbind --deep nohup forever ./server-index.js &

请注意,reference [1]建议在生产服务器上使用反向代理而不是对Node.js使用authbind。

[1] https://thomashunter.name/posts/2012-12-14-using-authbind-with-node-js

© www.soinside.com 2019 - 2024. All rights reserved.