pm2 start xxx
#啟動服務器
pm2 list
#查看運行狀態
pm2 logs
#查看日志
pm2 restart xxx
#重啟應用
pm2 stop xxx
#停止應用
監聽修改,並自動重啟:pm2 start xxx --watch(重啟的是服務端代碼,瀏覽器需刷新)