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 反代 (推荐)