常用命令:
install:
npm install pm2 -g
start:
pm2 start ./bin/www -i 4
pm2 start ./bin/www
pm2 start ./bin/www --watch
view logs:
pm2 logs
stop :
pm2 stop ./bin/www
kill:
pm2 kill
service:
pm2 startup centos
dev:
pm2-dev start ./bin/www
常用命令:
install:
npm install pm2 -g
start:
pm2 start ./bin/www -i 4
pm2 start ./bin/www
pm2 start ./bin/www --watch
view logs:
pm2 logs
stop :
pm2 stop ./bin/www
kill:
pm2 kill
service:
pm2 startup centos
dev:
pm2-dev start ./bin/www