diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index bb13ae41..d6acfb16 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -93,7 +93,14 @@ function getGuideSidebarZhCN() { { text: '如何反向代理 gRPC 端口', link: '/guide/q3' }, { text: '实时通道断开/在线终端连接失败', link: '/guide/q4' }, { text: '如何进行数据迁移、备份恢复?', link: '/guide/q5' } - + ] + }, + { + text: '排障指南', + children: [ + { text: 'Dashboard相关', link: '/guide/dashboardq' }, + { text: 'Agent相关', link: '/guide/agentq' }, + { text: '登陆相关', link: '/guide/loginq' } ] } ] @@ -138,6 +145,14 @@ function getGuideSidebarEnUS() { { text: 'Real-time channel disconnection/online terminal connection failure', link: '/en_US/guide/q4' }, { text: 'How do I migrate my data to the new server and restore my backups?', link: '/en_US/guide/q5' } ] + }, + { + text: 'Troubleshooting Guide', + children: [ + { text: 'Dashboard', link: '/en_US/guide/dashboardq' }, + { text: 'Agent', link: '/en_US/guide/agentq' }, + { text: 'Login', link: '/en_US/guide/loginq' } + ] } ] } diff --git a/docs/en_US/guide/agentq.md b/docs/en_US/guide/agentq.md new file mode 100644 index 00000000..8c527b8d --- /dev/null +++ b/docs/en_US/guide/agentq.md @@ -0,0 +1 @@ +# Agent \ No newline at end of file diff --git a/docs/en_US/guide/dashboardq.md b/docs/en_US/guide/dashboardq.md new file mode 100644 index 00000000..6b4bfd6c --- /dev/null +++ b/docs/en_US/guide/dashboardq.md @@ -0,0 +1 @@ +# Dashboard \ No newline at end of file diff --git a/docs/en_US/guide/loginq.md b/docs/en_US/guide/loginq.md new file mode 100644 index 00000000..772bc0bd --- /dev/null +++ b/docs/en_US/guide/loginq.md @@ -0,0 +1 @@ +# Login \ No newline at end of file diff --git a/docs/guide/agentq.md b/docs/guide/agentq.md new file mode 100644 index 00000000..f0053d59 --- /dev/null +++ b/docs/guide/agentq.md @@ -0,0 +1,4 @@ +# Agent相关 +### 后台显示的IP和Agent实际IP不一致? +请查看[Dashboard相关-后台显示的IP和Agent实际IP不一致?](/guide/dashboardq.html#后台显示的ip和agent实际ip不一致?) +在此不再赘述。 \ No newline at end of file diff --git a/docs/guide/dashboardq.md b/docs/guide/dashboardq.md new file mode 100644 index 00000000..df5ab050 --- /dev/null +++ b/docs/guide/dashboardq.md @@ -0,0 +1,16 @@ +# Dashboard相关 +### 实时通道断开/在线终端连接失败 +请查看[常见问题-实时通道断开/在线终端连接失败](/guide/q4.html) +在此不再赘述。 + +### 后台显示的IP和Agent实际IP不一致? +首先解释后台显示的IP是怎么来的,Agent会每隔一段时间请求一遍IP-API,获取到IP信息后进行上报,目前使用的IP-API可在此查看[myip.go](https://github.com/naiba/nezha/blob/master/cmd/agent/monitor/myip.go)。 +如您认为后台显示的IP和服务商提供给您的IP不一致,最大的可能是服务商给您的是**入口**,但Agent测试的是您的**出口**。这个问题也可能会出现在多线主机中。 +举个简单也十分常见的例子,服务商给您提供的是一台高防主机,为了同时满足高防和低网络中断率的目标,提供给您的IP可能是经过映射后的高防IP而并非您主机的真实出口IP。 +您也可以使用以下命令在Agent部署主机中进行测试。 +```shell +curl api.myip.la +curl ip.sb +curl ip-api.com +``` + diff --git a/docs/guide/loginq.md b/docs/guide/loginq.md new file mode 100644 index 00000000..b5499b08 --- /dev/null +++ b/docs/guide/loginq.md @@ -0,0 +1 @@ +# 登陆相关