From b68b4128c8d26a1b233c04aa929061d580dae255 Mon Sep 17 00:00:00 2001 From: zhangningle <1160030724@qq.com> Date: Mon, 18 Dec 2023 10:31:34 +0800 Subject: [PATCH] feat: pm2 port --- ...\351\203\250\347\275\262Next\346\234\215\345\212\241.md" | 6 ++++++ 1 file changed, 6 insertions(+) diff --git "a/docs/articles/Next/\344\275\277\347\224\250PM2\351\203\250\347\275\262Next\346\234\215\345\212\241.md" "b/docs/articles/Next/\344\275\277\347\224\250PM2\351\203\250\347\275\262Next\346\234\215\345\212\241.md" index 1cdac92..0c5a260 100644 --- "a/docs/articles/Next/\344\275\277\347\224\250PM2\351\203\250\347\275\262Next\346\234\215\345\212\241.md" +++ "b/docs/articles/Next/\344\275\277\347\224\250PM2\351\203\250\347\275\262Next\346\234\215\345\212\241.md" @@ -71,6 +71,12 @@ npm run build pm2 start --name yourappname npm -- start ``` +也可以指定端口启动: + +``` +pm2 start npm --name "yourappname" -- start -- -p 8000 +``` + 启动成功后,使用命令查看服务状态: ```