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 重启看 是否能正常打开

相关文章
相关标签/搜索