diff --git a/manual/configuration/index.md b/manual/configuration/index.md index 616bc1e..f6c9831 100644 --- a/manual/configuration/index.md +++ b/manual/configuration/index.md @@ -24,8 +24,14 @@ MaiBot 支持通过 OpenIE 技术导入知识库。文件命名需以 `-openie.j ```ini HOST=127.0.0.1 PORT=8000 + +# WebUI 配置 +WEBUI_ENABLED=true +WEBUI_HOST=0.0.0.0 +WEBUI_PORT=8001 +WEBUI_MODE=production # 生产模式 ``` -.env文件中的这部分负责配置MaiBot监听的端口和地址。 +.env文件中的这部分负责配置MaiBot监听的地址和端口;以及webui的启用、监听的地址和端口、模式。 ## 常见问题 diff --git a/manual/deployment/mmc_deploy_android.md b/manual/deployment/mmc_deploy_android.md index 3b640fd..5a1b378 100644 --- a/manual/deployment/mmc_deploy_android.md +++ b/manual/deployment/mmc_deploy_android.md @@ -307,6 +307,28 @@ python3 main.py # 按 Ctrl+A 然后按 D 退出screen ``` +### 使用社区管理脚本启动 +作者:kanfandelong + +脚本放置位置参考 + +``` +../ +├── MaiBot/ +├── MaiBot-Napcat-Adapter/ +├── maibot.sh +└── ... +``` +#### 获取脚本并运行 +```bash [apt] +#安装unbuffer和wget +sudo apt install expect wget +#下载管理脚本 +wget https://github.com/kanfandelong/maimai_install/blob/main/maibot.sh +#运行管理脚本 +bash maibot.sh +``` + ## 九、命令速查表 ### 基础命令 diff --git a/manual/deployment/mmc_deploy_linux.md b/manual/deployment/mmc_deploy_linux.md index 63fcd5a..e5f7c87 100644 --- a/manual/deployment/mmc_deploy_linux.md +++ b/manual/deployment/mmc_deploy_linux.md @@ -287,7 +287,27 @@ source ../MaiBot/venv/bin/activate python3 main.py ``` +### 使用社区管理脚本启动 +作者:kanfandelong +脚本放置位置参考 + +``` +../ +├── MaiBot/ +├── MaiBot-Napcat-Adapter/ +├── maibot.sh +└── ... +``` +#### 获取脚本并运行 +```bash [apt] +#安装unbuffer和wget +sudo apt install expect wget +#下载管理脚本 +wget https://github.com/kanfandelong/maimai_install/blob/main/maibot.sh +#运行管理脚本 +bash maibot.sh +``` ## 命令速查表 diff --git a/manual/usage/backup.md b/manual/usage/backup.md index 57a7ed4..98a91a7 100644 --- a/manual/usage/backup.md +++ b/manual/usage/backup.md @@ -6,6 +6,7 @@ MaiBot 文件夹结构: ``` MaiBot/ ├── data/ +├── plugins/ ├── config/ │   ├── bot_config.toml │ └── model_config.toml @@ -21,7 +22,9 @@ MaiBot/ ### 3. `model_config.toml`文件 - 用于存储调用的大模型信息,AI云服务提供商的KEY API ### 4. `.env` 文件 -- 存储`maim_message`端口和地址。 +- 存储MaiBot监听的地址和端口;以及webui的启用、监听的地址和端口、模式。 +### 5. `plugins` 文件夹(可选) +- 存储MaiBot所有插件的本体,及其各自的配置文件和数据文件(如果有) ::: details 如果你使用的是低于0.7.0版本的MaiBot,那么点开这里 ### MongoDB 数据库备份与恢复