npm install -g nodemon
npm install -g pm2
nodemon app.js
pm2 start app.js
示例代码:
nodemon index.js
pm2 start index.js