Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 6ccdcc9

Browse files
authored
Merge pull request #110 from jlugjb/v4
修复指导文档中NapCat的6199端口未打开的问题
2 parents 791ba0f + 7ea272c commit 6ccdcc9

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

en/deploy/platform/aiocqhttp/napcat.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ Refer to this article: [NapCat.Installer - Linux One-Click Script (Supports Ubun
3838
3939
1. Download or copy the content of [astrbot.yml](https://github.com/NapNeko/NapCat-Docker/blob/main/compose/astrbot.yml)
4040
2. Rename the downloaded file to `astrbot.yml`
41-
3. Execute in the directory where the `astrbot.yml` file is located:
41+
3. Modify `astrbot.yml`, change `#- "6199:6199` to `- "6199:6199"`, remove the flag of "#"
42+
4. Execute in the directory where the `astrbot.yml` file is located:
4243

4344
```bash
44-
NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker-compose -f ./astrbot.yml up -d
45+
NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker compose -f ./astrbot.yml up -d
4546
```
4647

4748
## Deploy via Docker

zh/deploy/platform/aiocqhttp/napcat.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ NapCat 提供了大量的部署方式,包括 Docker、Windows 一键安装包
3737
3838
1. 下载或复制 [astrbot.yml](https://github.com/NapNeko/NapCat-Docker/blob/main/compose/astrbot.yml) 内容
3939
2. 将刚刚下载的文件重命名为 `astrbot.yml`
40-
3.`astrbot.yml` 文件所在目录执行:
40+
3. 编辑 `astrbot.yml`,将 `# - "6199:6199"` 修改为 `- "6199:6199"`,移除开头的 `#`
41+
4.`astrbot.yml` 文件所在目录执行:
4142

4243
```bash
43-
NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker-compose -f ./astrbot.yml up -d
44+
NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker compose -f ./astrbot.yml up -d
4445
```
4546

4647
## 通过 Docker 部署
@@ -115,7 +116,7 @@ docker logs napcat
115116
在新弹出的窗口中:
116117

117118
- 勾选 `启用`
118-
- `URL` 填写 `ws://宿主机IP:端口/ws`。如 `ws://localhost:6199/ws``ws://127.0.0.1:6199/ws`
119+
- `URL` 填写 `ws://宿主机IP:端口/ws`。如 `ws://localhost:6199/ws``ws://127.0.0.1:6199/ws`
119120

120121
> [!IMPORTANT]
121122
> 1. 如果采用 Docker 部署并同时把 AstrBot 和 NapCat 两个容器接入了同一网络,`ws://astrbot:6199/ws`(参考本文档的 Docker 脚本)。

0 commit comments

Comments
 (0)