Merge pull request #3214 from slievrly/develop_doc_0804

optimize namesrv default address docs
This commit is contained in:
tiger lee
2022-01-05 20:42:52 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ export NAMESRV_ADDR=192.168.0.1:9876;192.168.0.2:9876
```
客户端默认每隔2分钟访问一次这个HTTP服务器,并更新本地的Name Server地址。URL已经在代码中硬编码,可通过修改/etc/hosts文件来改变要访问的服务器,例如在/etc/hosts增加如下配置:
```text
10.232.22.67 jmenv.taobao.net
10.232.22.67 jmenv.tbsite.net
```
推荐使用HTTP静态服务器寻址方式,好处是客户端部署简单,且Name Server集群可以热升级。
+1 -1
View File
@@ -32,7 +32,7 @@ After client started, it will access the http static server address, as: <http:/
```
By default, the client accesses the HTTP server every 2 minutes, and update the local Name Server address.The URL is hardcoded in the code, you can change the target server by updating ```/etc/hosts``` file, such as add following configuration at the ```/etc/hosts```:
```text
10.232.22.67 jmenv.taobao.net
10.232.22.67 jmenv.tbsite.net
```
HTTP static server addressing is recommended, because it is simple client deployment, and the Name Server cluster can be upgraded hot.