巴扎黑2017-04-17 15:57:04
Use pm2, it can help you start multiple service threads, utilize the server's CPU as much as possible, and ensure that the process is always alive and reloaded in 0 seconds.
For specific usage, you can google it yourself.
Official website address: http://pm2.keymetrics.io
PHPz2017-04-17 15:57:04
The native cluster
module has already solved this problem for you.
Reference: https://cnodejs.org/topic/56e...