Merge branch 'main' of github.com:nezhahq/nezhahq.github.io
This commit is contained in:
commit
533a4077d3
@ -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' }
|
||||
]
|
||||
}
|
||||
]
|
||||
@ -139,6 +146,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' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
1
docs/en_US/guide/agentq.md
Normal file
1
docs/en_US/guide/agentq.md
Normal file
@ -0,0 +1 @@
|
||||
# Agent
|
1
docs/en_US/guide/dashboardq.md
Normal file
1
docs/en_US/guide/dashboardq.md
Normal file
@ -0,0 +1 @@
|
||||
# Dashboard
|
1
docs/en_US/guide/loginq.md
Normal file
1
docs/en_US/guide/loginq.md
Normal file
@ -0,0 +1 @@
|
||||
# Login
|
4
docs/guide/agentq.md
Normal file
4
docs/guide/agentq.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Agent相关
|
||||
### 后台显示的IP和Agent实际IP不一致?
|
||||
请查看[Dashboard相关-后台显示的IP和Agent实际IP不一致?](/guide/dashboardq.html#后台显示的ip和agent实际ip不一致?)
|
||||
在此不再赘述。
|
16
docs/guide/dashboardq.md
Normal file
16
docs/guide/dashboardq.md
Normal file
@ -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
|
||||
```
|
||||
|
1
docs/guide/loginq.md
Normal file
1
docs/guide/loginq.md
Normal file
@ -0,0 +1 @@
|
||||
# 登陆相关
|
Loading…
x
Reference in New Issue
Block a user