pm2使用
发布于 2 年前·
0 人看过
·约 1 分钟
·12 字 · 9 行代码1.安装 pm2
pnpm i -g pm2
2.使用 pm2 启动项目
# 启动
pm2 start npm --name "next" -- start
# 重新加载
pm2 reload next
# 停止
pm2 stop next
pnpm i -g pm2
# 启动
pm2 start npm --name "next" -- start
# 重新加载
pm2 reload next
# 停止
pm2 stop next