docs: 补充 PM2 进程管理命令及 python3-serial 依赖说明
This commit is contained in:
@@ -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 反代 (推荐)
|
||||
|
||||
Reference in New Issue
Block a user