1. How to Start Express in Ubuntu, background way. Website www
/home/host/express/web/bin# nohup node www
2. This design of node. JS, while improving performance, is not conducive to development debugging because we always want to see the effect as soon as we change it, rather than terminating the process and restarting it every time. Supervisor can help you implement this feature by monitoring your code changes and automatically restarting node. js.
The installation of the supervisor is also simple:
Install directly with NPM you can type the command: Npm-g Install Supervisor
Note here that supervisor must be installed to the global, if you do not install to the global, the error command will prompt you to install to the global.
If you do not want to install to the default global, you can modify the global path to the current path yourself
[Email protected]:~# nohup Supervisor /home/host/express/web/bin/www
node. js + Express + Ubuntu