Classify articles under Linux tips
The forever command lets the Node.js application execute in the background
Node.js is usually executed as a user command. When the user disconnects the client, the operation stops, which is very annoying. So how to make the Node.js application as a service and execute it in the background?
The simplest way is to use the nohup command:
nohup node app.js