14.【nuxt起步】-Pm2 和nuxt服務運行

1.安裝pm2web

npm install pm2 -gdnpm

2.啓動json

Pm2 start ./bin/wwwui

3. pm2 savespa

4.Pm2 startupnuxt

5.Pm2 save
修改 package.jsoncode

"scripts": {blog

  "build": "nuxt build && npm start",進程

}ip

web當前目錄

pm2 start npm --name "xxxx-nuxt" -- run build

Pm2 list 查看進程

Pm2 save 保存

pm2 reload id 重載指定進程

Reboot 重啓看 是否能正常打開

相關文章
相關標籤/搜索