You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/09/03 02:48:04 UTC

[GitHub] chickenlj closed pull request #112: [Dubbo-2043][Baiji-7]fix issue 2043

chickenlj closed pull request #112: [Dubbo-2043][Baiji-7]fix issue 2043
URL: https://github.com/apache/incubator-dubbo-website/pull/112
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/zh-cn/user/demos/hostname-registry.md b/docs/zh-cn/user/demos/hostname-registry.md
new file mode 100644
index 00000000..9bfdcb3b
--- /dev/null
+++ b/docs/zh-cn/user/demos/hostname-registry.md
@@ -0,0 +1,18 @@
+# 使用域名注册发现
+
+
+有些部署场景需要动态指定服务注册的地址,如docker bridge网络模式下要指定注册宿主机ip以实现外网通信。dubbo提供了两对启动阶段的系统属性,用于设置对外通信的ip、port地址  
+
+如果你想使用域名来将服务发布到注册中心上,需要使用`环境变量`遵循如下配置:  
+`DUBBO_IP_TO_REGISTRY` :注册到注册中心的IP或主机域名  
+`DUBBO_PORT_TO_REGISTRY` :注册到注册中心的port端口
+
+####注意:
+指定IP或主机域名不能使用以下几种情况:
+1. `0.0.0.0` 
+3. `127.*.*.*`
+3. `localhost`
+4. `环境变量为空或空字符串`
+
+消费端需要将发布到注册中心的主机域名配置到本地hosts中
+


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org