简体   繁体   中英

Will a NodeJs app automatically restart upon crash when using nginx?

I'm learning, bit by bit, nginx in conjunction with a NodeJs app on linux. I'm wondering if nginx is taking care of automatically restarting the nodeJs app in the event of a crash? thx

No, nginx won't restart node.js. You need to use something like forever to make sure that node.js restarts itself if it dies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM