14.【nuxt起步】-Pm2 和nuxt服务运行


1.安装pm2

npm install pm2 -gd

2.启动

Pm2 start ./bin/www

3. pm2 save

4.Pm2 startup

5.Pm2 save
修改 package.json

"scripts": {

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

}

web当前目录

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

Pm2 list 查看进程

Pm2 save 保存

pm2 reload id 重载指定进程

Reboot 重启看 是否能正常打开


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM