Compare commits

...

2 Commits

View File

@@ -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 反代 (推荐)
@@ -118,7 +125,12 @@ server {
proxy_set_header Connection "upgrade";
```
3. **Advanced 选项卡** (可选)
* 建议添加`client_max_body_size 100M;` 以支持大文件。
* 建议添加以下配置以支持大文件上传并忽略自签名证书错误(重要!):
```nginx
client_max_body_size 100M;
# 忽略后端自签名证书错误 (必填,否则无法连接 wss)
proxy_ssl_verify off;
```
## 5. 跨平台特性说明