本帖最后由 夺命梵音 于 2026-8-1 13:30 编辑
插件https://bbs.binmt.cc/thread-170132-1-1.html
所有操作 SSH右键粘贴
第一阶段:环境安装与 Nginx 基础修复首先执行以下命令安装插件并配置主文件(解决权限和目录加载问题) # 1. 安装 Nginx
- opkg update && opkg install nginx
复制代码
# 2. 写入全局主配置文件 (修正 user root 和 include 路径) - cat > /opt/etc/nginx/nginx.conf << 'EOF'
- user root;
- worker_processes 1;
- events { worker_connections 1024; }
- http {
- include mime.types;
- include /opt/etc/nginx/conf.d/*.conf;
- default_type text/plain;
- }
- EOF
- # 1. 安装 Nginx
- opkg update && opkg install nginx
- # 2. 写入全局主配置文件 (修正 user root 和 include 路径)
- cat > /opt/etc/nginx/nginx.conf << 'EOF'
- user root;
- worker_processes 1;
- events { worker_connections 1024; }
- http {
- include mime.types;
- include /opt/etc/nginx/conf.d/*.conf;
- default_type text/plain;
- }
- EOF
复制代码
# 2. 写入全局主配置文件 (修正 user root 和 include 路径)
- cat > /opt/etc/nginx/nginx.conf << 'EOF'
- user root;
- worker_processes 1;
- events { worker_connections 1024; }
- http {
- include mime.types;
- include /opt/etc/nginx/conf.d/*.conf;
- default_type text/plain;
- }
- EOF
复制代码
第二阶段:创建可视化管理脚本
第三阶段:运行 ,如果你的设备 IP 变了(不再是 192.168.50.85),只需执行: sed -i 's/TARGET_IP=.*/TARGET_IP="你的新IP"/' /jffs/scripts/mcp_mgr.sh
脚本运行命令:
插件配置提示:
脚本启动时会提醒你: DeepSeek++ 插件高级设置 -> 结果字节 -> 修改为 1000000。这是为了配合你的魔改版插件,确保大体积工具列表能正常显示。
|