From 2fc49f5dbbec809901d37bc58bd07a5c44749c44 Mon Sep 17 00:00:00 2001 From: yczpf2019 Date: Sat, 24 Jan 2026 16:48:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E5=85=85=20PM2=20=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E7=AE=A1=E7=90=86=E5=91=BD=E4=BB=A4=E5=8F=8A=20python?= =?UTF-8?q?3-serial=20=E4=BE=9D=E8=B5=96=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b85f232..bba07a50 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ sudo apt update && sudo apt upgrade -y # 安装 Git, Node.js (建议 18+), Python3 curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - -sudo apt install -y git nodejs python3 python3-pip +sudo apt install -y git nodejs python3 python3-pip python3-serial # 串口访问权限设置 (非常重要:否则无法烧录/上传) sudo usermod -a -G dialout $USER @@ -53,6 +53,13 @@ sudo npm install -g pm2 pm2 start dist/bundle.cjs --name "mixly3" pm2 save pm2 startup + +#### PM2 常用管理命令 +- **查看状态**: `pm2 status` 或 `pm2 list` +- **重启服务**: `pm2 reload mixly3` +- **停止服务**: `pm2 stop mixly3` +- **查看日志**: `pm2 logs mixly3` +- **实时监控**: `pm2 monit` ``` ### 4.2 使用 Nginx 反代 (推荐)