This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site-v2
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/asf-site-v2 by this push:
new 19f62147e6 deploy: 24c0cd368c81fc700b73eb7e1cb6de1335f5ad58
19f62147e6 is described below
commit 19f62147e6cf4e50c0f8cd7f86368ee26205a27e
Author: AlbumenJ <[email protected]>
AuthorDate: Tue Jan 17 06:15:14 2023 +0000
deploy: 24c0cd368c81fc700b73eb7e1cb6de1335f5ad58
---
sitemap.xml | 2 +-
.../others/docker/index.html | 32 ++++++------
.../advanced-features-and-usage/others/index.xml | 59 +++++++++++-----------
zh/sitemap.xml | 2 +-
4 files changed, 49 insertions(+), 46 deletions(-)
diff --git a/sitemap.xml b/sitemap.xml
index 2bf0d089da..6a94a3efa1 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://dubbo.apache.org/zh/sitemap.xml</loc><lastmod>2023-01-17T14:10:45+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2023-01-17T11:34:11+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://dubbo.apache.org/zh/sitemap.xml</loc><lastmod>2023-01-17T14:11:06+08:00</lastmod></sitemap><sitemap><loc>https://dubbo.apache.org/en/sitemap.xml</loc><lastmod>2023-01-17T11:34:11+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git
a/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/index.html
b/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/index.html
index 173c94a880..11fe2d5dd0 100644
--- a/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/index.html
+++ b/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/index.html
@@ -1,31 +1,33 @@
-<!doctype html><html lang=zh class=no-js><head><meta charset=utf-8><meta
name=viewport
content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta
name=generator content="Hugo 0.109.0"><meta name=ROBOTS content="INDEX,
FOLLOW"><link rel="shortcut icon" href=/favicons/favicon.ico><link
rel=apple-touch-icon href=/favicons/apple-touch-icon-180x180.png
sizes=180x180><link rel=icon type=image/png href=/favicons/favicon-16x16.png
sizes=16x16><link rel=icon type=image/png href=/favicons [...]
-DUBBO_IP_TO_REGISTRY — Registering to the IP address of the registration
center DUBBO_PORT_TO_REGISTRY — Registering to the port of the
registration center DUBBO_IP_TO_BIND — Listening IP addresses
DUBBO_PORT_TO_BIND — Listening ports The above four configurations are
optional."><meta property="og:type" content="article"><meta property="og:url"
content="https://dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/"><meta
property="articl [...]
-DUBBO_IP_TO_REGISTRY — Registering to the IP address of the registration
center DUBBO_PORT_TO_REGISTRY — Registering to the port of the
registration center DUBBO_IP_TO_BIND — Listening IP addresses
DUBBO_PORT_TO_BIND — Listening ports The above four configurations are
optional."><meta itemprop=dateModified
content="2023-01-17T11:03:15+08:00"><meta itemprop=wordCount
content="362"><meta itemprop=keywords content><meta name=twitter:card
content="summary"><meta name= [...]
-DUBBO_IP_TO_REGISTRY — Registering to the IP address of the registration
center DUBBO_PORT_TO_REGISTRY — Registering to the port of the
registration center DUBBO_IP_TO_BIND — Listening IP addresses
DUBBO_PORT_TO_BIND — Listening ports The above four configurations are
optional."><script type=application/javascript>var
doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new
Date,ga("create","UA-112489517-1","auto"),ga(" [...]
+<!doctype html><html lang=zh class=no-js><head><meta charset=utf-8><meta
name=viewport
content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta
name=generator content="Hugo 0.109.0"><meta name=ROBOTS content="INDEX,
FOLLOW"><link rel="shortcut icon" href=/favicons/favicon.ico><link
rel=apple-touch-icon href=/favicons/apple-touch-icon-180x180.png
sizes=180x180><link rel=icon type=image/png href=/favicons/favicon-16x16.png
sizes=16x16><link rel=icon type=image/png href=/favicons [...]
+DUBBO_IP_TO_REGISTRY — 注册到注册中心的IP地址 DUBBO_PORT_TO_REGISTRY —
注册到注册中心的端口 DUBBO_IP_TO_BIND — 侦听IP地址 DUBBO_PORT_TO_BIND — 侦听端口
以上四个配置是可选的。如果没有配置,Dubbo会自动获得IP和端口。请根据部署情况,灵活选择。 Dubbo支持多协议.
如果一个应用程序同时暴露了多个不同的协议服务,并且需要为每个服务分别指定IP或端口。请在上述属性前分别添加协议前缀。
HESSIAN_DUBBO_PORT_TO_BIND hessian 协议绑定端口 DUBBO_DUBBO_PORT_TO_BIND dubbo 协议绑定端口
HESSIAN_DUBBO_IP_TO_REGISTRY hessian 协议注册的IP DUBBO_DUBBO_IP_TO_REGISTRY dubbo
协议注册的IP PORT_TO_REGISTRY或IP_TO_REGISTRY不会被用作默认的PORT_TO_BIND或IP_TO_B [...]
+克隆项目到本地 git clone [email protected]:dubbo/dubbo-docker-sample.git cd
dubbo-docker-sample 包本地的maven mvn clean install 通过docker build建立一个镜像 docker
build --no-cache -t dubbo-docker-sample . 构建镜像 FROM openjdk:8-jdk-alpine ADD
target/dubbo-docker-sample-0.0.1-SNAPSHOT.jar app.jar ENV JAVA_OPTS=""
ENTRYPOINT exec java $JAVA_OPTS -jar /app."><meta property="og:type"
content="article"><meta property="og:url"
content="https://dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/
[...]
+DUBBO_IP_TO_REGISTRY — 注册到注册中心的IP地址 DUBBO_PORT_TO_REGISTRY —
注册到注册中心的端口 DUBBO_IP_TO_BIND — 侦听IP地址 DUBBO_PORT_TO_BIND — 侦听端口
以上四个配置是可选的。如果没有配置,Dubbo会自动获得IP和端口。请根据部署情况,灵活选择。 Dubbo支持多协议.
如果一个应用程序同时暴露了多个不同的协议服务,并且需要为每个服务分别指定IP或端口。请在上述属性前分别添加协议前缀。
HESSIAN_DUBBO_PORT_TO_BIND hessian 协议绑定端口 DUBBO_DUBBO_PORT_TO_BIND dubbo 协议绑定端口
HESSIAN_DUBBO_IP_TO_REGISTRY hessian 协议注册的IP DUBBO_DUBBO_IP_TO_REGISTRY dubbo
协议注册的IP PORT_TO_REGISTRY或IP_TO_REGISTRY不会被用作默认的PORT_TO_BIND或IP_TO_B [...]
+克隆项目到本地 git clone [email protected]:dubbo/dubbo-docker-sample.git cd
dubbo-docker-sample 包本地的maven mvn clean install 通过docker build建立一个镜像 docker
build --no-cache -t dubbo-docker-sample . 构建镜像 FROM openjdk:8-jdk-alpine ADD
target/dubbo-docker-sample-0.0.1-SNAPSHOT.jar app.jar ENV JAVA_OPTS=""
ENTRYPOINT exec java $JAVA_OPTS -jar /app."><meta itemprop=dateModified
content="2023-01-17T14:11:06+08:00"><meta itemprop=wordCount
content="114"><meta itemprop=keywords content><meta name=twit [...]
+DUBBO_IP_TO_REGISTRY — 注册到注册中心的IP地址 DUBBO_PORT_TO_REGISTRY —
注册到注册中心的端口 DUBBO_IP_TO_BIND — 侦听IP地址 DUBBO_PORT_TO_BIND — 侦听端口
以上四个配置是可选的。如果没有配置,Dubbo会自动获得IP和端口。请根据部署情况,灵活选择。 Dubbo支持多协议.
如果一个应用程序同时暴露了多个不同的协议服务,并且需要为每个服务分别指定IP或端口。请在上述属性前分别添加协议前缀。
HESSIAN_DUBBO_PORT_TO_BIND hessian 协议绑定端口 DUBBO_DUBBO_PORT_TO_BIND dubbo 协议绑定端口
HESSIAN_DUBBO_IP_TO_REGISTRY hessian 协议注册的IP DUBBO_DUBBO_IP_TO_REGISTRY dubbo
协议注册的IP PORT_TO_REGISTRY或IP_TO_REGISTRY不会被用作默认的PORT_TO_BIND或IP_TO_B [...]
+克隆项目到本地 git clone [email protected]:dubbo/dubbo-docker-sample.git cd
dubbo-docker-sample 包本地的maven mvn clean install 通过docker build建立一个镜像 docker
build --no-cache -t dubbo-docker-sample . 构建镜像 FROM openjdk:8-jdk-alpine ADD
target/dubbo-docker-sample-0.0.1-SNAPSHOT.jar app.jar ENV JAVA_OPTS=""
ENTRYPOINT exec java $JAVA_OPTS -jar /app."><script
type=application/javascript>var
doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new
Date,ga( [...]
<link rel=preload
href=/scss/main.min.8637cb48af1c2672dbf22e4e83652c0cebe2d667477b88c8a046be155bcf7cfe.css
as=style><link
href=/scss/main.min.8637cb48af1c2672dbf22e4e83652c0cebe2d667477b88c8a046be155bcf7cfe.css
rel=stylesheet integrity><script src=/js/jquery-3.5.1.min.js
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin=anonymous></script>
<link rel=stylesheet
href=https://cdn.jsdelivr.net/npm/@docsearch/css@3></head><body
class=td-page><header><nav class="js-navbar-scroll navbar navbar-expand
navbar-dark flex-column flex-md-row td-navbar"><a class=navbar-brand
href=/zh/><span class=navbar-logo><svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 321.39 78.54"><title id="title19">DUBBO LOGO</title><path
class="cls-1" d="M68.46 50.38c0 14.06 11.39 22.11 25.45 22.11s25.45-8.05
25.45-22.11V7.25H68.46zm21.24-28h8.6V31H89.7zm0 [...]
<a
href="https://github.com/apache/dubbo-website/new/master/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit
[...]
<a
href="https://github.com/apache/dubbo-website/issues/new?title=%e5%b0%86%20Dubbo%20%e9%83%a8%e7%bd%b2%e5%88%b0%20Docker%20%e7%8e%af%e5%a2%83"
target=_blank><i class="fab fa-github fa-fw"></i> 提交文档问题</a>
-<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> 提交项目问题</a></div></aside><main class="col-12 col-md-9
col-xl-8 pl-md-5" role=main><nav aria-label=breadcrumb class="d-none d-md-block
d-print-none"><ol class="breadcrumb spb-1"><li class=breadcrumb-item><a
href=https://dubbo.apache.org/zh/docs3-v2/>SDK 手册</a></li><li
class=breadcrumb-item><a
href=https://dubbo.apache.org/zh/docs3-v2/java-sdk/>Java</a></li><li
class=breadcrumb-item><a href=h [...]
+<a href=https://github.com/apache/dubbo/issues/new target=_blank><i class="fas
fa-tasks fa-fw"></i> 提交项目问题</a></div></aside><main class="col-12 col-md-9
col-xl-8 pl-md-5" role=main><nav aria-label=breadcrumb class="d-none d-md-block
d-print-none"><ol class="breadcrumb spb-1"><li class=breadcrumb-item><a
href=https://dubbo.apache.org/zh/docs3-v2/>SDK 手册</a></li><li
class=breadcrumb-item><a
href=https://dubbo.apache.org/zh/docs3-v2/java-sdk/>Java</a></li><li
class=breadcrumb-item><a href=h [...]
</span></span><span style=display:flex><span><span
style=color:#b58900>cd</span> dubbo-docker-sample
-</span></span></code></pre></div><ol start=2><li>package local
maven</li></ol><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>mvn clean install
-</span></span></code></pre></div><ol start=3><li>build a mirror by docker
build</li></ol><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>docker build
--no-cache -t dubbo-docker-sample .
-</span></span></code></pre></div><p>Dockerfile</p><div class=highlight><pre
tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>FROM
openjdk:8-jdk-alpine
+</span></span></code></pre></div><ol start=2><li>包本地的maven</li></ol><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>mvn clean install
+</span></span></code></pre></div><ol start=3><li>通过docker
build建立一个镜像</li></ol><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>docker build
--no-cache -t dubbo-docker-sample .
+</span></span></code></pre></div><ol start=4><li>构建镜像</li></ol><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>FROM
openjdk:8-jdk-alpine
</span></span><span style=display:flex><span>ADD
target/dubbo-docker-sample-0.0.1-SNAPSHOT.jar app.jar
</span></span><span style=display:flex><span>ENV <span
style=color:#268bd2>JAVA_OPTS</span><span style=color:#719e07>=</span><span
style=color:#2aa198>""</span>
</span></span><span style=display:flex><span>ENTRYPOINT <span
style=color:#b58900>exec</span> java <span
style=color:#268bd2>$JAVA_OPTS</span> -jar /app.jar
-</span></span></code></pre></div><ol start=4><li>Create and run containers
from mirroring</li></ol><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span><span
style=color:#586e75># Since we use the zk registration center, we start zk
container first</span>
+</span></span></code></pre></div><ol start=5><li>从镜像中创建和运行容器</li></ol><div
class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span><span
style=color:#586e75># 由于我们使用zk注册中心,我们先启动zk容器</span>
</span></span><span style=display:flex><span>docker run --name zkserver
--restart always -d zookeeper:3.4.9
</span></span></code></pre></div><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>docker run -e
<span style=color:#268bd2>DUBBO_IP_TO_REGISTRY</span><span
style=color:#719e07>=</span>30.5.97.6 -e <span
style=color:#268bd2>DUBBO_PORT_TO_REGISTRY</span><span
style=color:#719e07>=</span><span style=color:#2aa198>20881</span> -p
30.5.97.6:20881:20880 - [...]
-</span></span></code></pre></div><blockquote><p>Suppose the host IP is
30.5.97.6.
-set the provider to register the IP address and port of the registration
center by environment variables <code>DUBBO_IP_TO_REGISTRY=30.5.97.6</code>
<code>DUBBO_PORT_TO_REGISTRY=20881</code>
-Implement the port mapping by<code>-p 30.5.97.6:20881:20880</code>, where
20880 is the listening port automatically selected by dubbo. There is no
monitoring IP configuration, so it will listen 0.0.0.0 (all IP).
-After startup, the registered address of provider is 30.5.97.6:20881, and the
listening address of the container is: 0.0.0.0:20880 </p></blockquote><ol
start=5><li>Test
-Execute from another host or container</li></ol><div class=highlight><pre
tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>telnet 30.5.97.6
<span style=color:#2aa198>20881</span>
+</span></span></code></pre></div><blockquote><p>假设主机IP是 30.5.97.6.
+通过环境变量设置提供商注册的IP地址和注册中心的端口 <code>DUBBO_IP_TO_REGISTRY=30.5.97.6</code>
<code>DUBBO_PORT_TO_REGISTRY=20881</code>
+通过以下方式实现端口映射<code>-p 30.5.97.6:20881:20880</code>,
其中20880是由dubbo自动选择的监听端口。没有监控IP的配置,所以它将监听0.0.0.0(所有IP)。
+启动后,提供者的注册地址是30.5.97.6:20881,而容器的监听地址是:0.0.0.0:20880。 </p></blockquote><ol
start=6><li>测试从另一个主机或容器中执行</li></ol><div class=highlight><pre tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-sh data-lang=sh><span style=display:flex><span>telnet 30.5.97.6
<span style=color:#2aa198>20881</span>
</span></span><span style=display:flex><span>ls
</span></span><span style=display:flex><span>invoke
org.apache.dubbo.test.docker.DemoService.hello<span
style=color:#719e07>(</span><span
style=color:#2aa198>"world"</span><span style=color:#719e07>)</span>
</span></span></code></pre></div><style>.feedback--answer{display:inline-block}.feedback--answer-no{margin-left:1em}.feedback--response{display:none;margin-top:1em}.feedback--response__visible{display:block}</style><div
class=d-print-none><h2 class=feedback--title>Feedback</h2><p
class=feedback--question>Was this page helpful?</p><button class="btn
btn-primary mb-4 feedback--answer feedback--answer-yes">Yes</button>
-<button class="btn btn-primary mb-4 feedback--answer
feedback--answer-no">No</button><p class="feedback--response
feedback--response-yes">Glad to hear it! Please <a
href=https://github.com/apache/dubbo-website/issues/new>tell us how we can
improve</a>.</p><p class="feedback--response feedback--response-no">Sorry to
hear that. Please <a
href=https://github.com/apache/dubbo-website/issues/new>tell us how we can
improve</a>.</p></div><script>const yesButton=document.querySelector(".feedback
[...]
+<button class="btn btn-primary mb-4 feedback--answer
feedback--answer-no">No</button><p class="feedback--response
feedback--response-yes">Glad to hear it! Please <a
href=https://github.com/apache/dubbo-website/issues/new>tell us how we can
improve</a>.</p><p class="feedback--response feedback--response-no">Sorry to
hear that. Please <a
href=https://github.com/apache/dubbo-website/issues/new>tell us how we can
improve</a>.</p></div><script>const yesButton=document.querySelector(".feedback
[...]
<script src=/js/bootstrap.min.js
integrity=sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy
crossorigin=anonymous></script>
<script
src=/js/main.min.9f304eb79b67eb331e2b22923c361575b563af25c0fd56279cf20f3a2417cff4.js
integrity="sha256-nzBOt5tn6zMeKyKSPDYVdbVjryXA/VYnnPIPOiQXz/Q="
crossorigin=anonymous></script>
<script src=https://cdn.jsdelivr.net/npm/@docsearch/js@3></script>
diff --git a/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/index.xml
b/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/index.xml
index c3bcd52217..769d7b2fb6 100644
--- a/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/index.xml
+++ b/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/index.xml
@@ -274,66 +274,67 @@ dubbo 支持多协议,如果一个应用同时暴露多个不同协议服务
<p>QOS 当计算节点检测到内存压力时,kuberentes 会 BestEffort -&gt; Burstable -&gt;
Guaranteed 依次驱逐 Pod。</p>
</blockquote>
<p>目前三种探针均有对应的接口,路径为 QOS 中的命令,端口信息请根据 QOS 配置进行对应修改(默认端口为 22222)。其他参数请参考
<a
href="https://kubernetes.io/zh/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/">Kubernetes官方文档说明</a>。</p></description></item><item><title>Docs3-V2:
将 Dubbo 部署到 Docker
环境</title><link>https://dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/others/docker/</link><pubDate>Mon,
01 Jan 0001 00:00:00
+0000</pubDate><guid>https://dubbo.apache.org/zh/docs3-v2/j [...]
-<p>Some deployment scenarios need to dynamically specify the address of
service registration. For example, docker bridge network mode need to specify a
registered host IP for external network communication. Dubbo provides two pairs
of system attributes in the startup phase, which are used to set the IP and
port addresses of external communication.</p>
+<p>一些部署场景需要动态地指定服务注册地址。例如,docker
bridge网络模式需要为外部网络通信指定一个注册主机IP。Dubbo在启动阶段提供了两对系统属性,用于设置外部通信的IP和端口地址。</p>
<ul>
-<li>DUBBO_IP_TO_REGISTRY &mdash; Registering to the IP address of the
registration center</li>
-<li>DUBBO_PORT_TO_REGISTRY &mdash; Registering to the port of the
registration center</li>
-<li>DUBBO_IP_TO_BIND &mdash; Listening IP addresses </li>
-<li>DUBBO_PORT_TO_BIND &mdash; Listening ports</li>
+<li>DUBBO_IP_TO_REGISTRY &mdash; 注册到注册中心的IP地址</li>
+<li>DUBBO_PORT_TO_REGISTRY &mdash; 注册到注册中心的端口</li>
+<li>DUBBO_IP_TO_BIND &mdash; 侦听IP地址</li>
+<li>DUBBO_PORT_TO_BIND &mdash; 侦听端口</li>
</ul>
<blockquote>
<ol>
-<li>The above four configurations are optional. Dubbo will automatically
get IP and port if there is no configuration. Please choose them flexibly
according to deployment scenarios.</li>
-<li>Dubbo supports multi-protocol. <strong>If an application exposes
multiple different protocol services simultaneously and need to specify IP or
port separately for each service. Please add the protocol prefix before the
above attributes separately.</strong> For example:</li>
+<li>以上四个配置是可选的。如果没有配置,Dubbo会自动获得IP和端口。请根据部署情况,灵活选择。</li>
+<li>Dubbo支持多协议.
<strong>如果一个应用程序同时暴露了多个不同的协议服务,并且需要为每个服务分别指定IP或端口。请在上述属性前分别添加协议前缀。</strong></li>
</ol>
<ul>
-<li>HESSIAN_DUBBO_PORT_TO_BIND hessian protocol bound port</li>
-<li>DUBBO_DUBBO_PORT_TO_BIND dubbo protocol bound port</li>
-<li>HESSIAN_DUBBO_IP_TO_REGISTRY hessian protocol registered IP</li>
-<li>DUBBO_DUBBO_IP_TO_REGISTRY dubbo protocol registered IP</li>
+<li>HESSIAN_DUBBO_PORT_TO_BIND hessian 协议绑定端口</li>
+<li>DUBBO_DUBBO_PORT_TO_BIND dubbo 协议绑定端口</li>
+<li>HESSIAN_DUBBO_IP_TO_REGISTRY hessian 协议注册的IP</li>
+<li>DUBBO_DUBBO_IP_TO_REGISTRY dubbo 协议注册的IP</li>
</ul>
<ol start="3">
-<li><code>PORT_TO_REGISTRY</code> or
<code>IP_TO_REGISTRY</code>won’t be used as default
<code>PORT_TO_BIND</code> or <code>IP_TO_BIND</code>,But the
reverse is true.</li>
+<li><code>PORT_TO_REGISTRY</code>或<code>IP_TO_REGISTRY</code>不会被用作默认的<code>PORT_TO_BIND</code>或<code>IP_TO_BIND</code>,但相反的是
true。</li>
</ol>
<ul>
-<li>If set<code>PORT_TO_REGISTRY=20881</code>
<code>IP_TO_REGISTRY=30.5.97.6</code>,then
<code>PORT_TO_BIND</code> <code>IP_TO_BIND</code>won’t be
affected.</li>
-<li>If set<code>PORT_TO_BIND=20881</code>
<code>IP_TO_BIND=30.5.97.6</code>,then
<code>PORT_TO_REGISTRY=20881</code>
<code>IP_TO_REGISTRY=30.5.97.6</code> by default.</li>
+<li>如果设置<code>PORT_TO_REGISTRY=20881</code>
<code>IP_TO_REGISTRY=30.5.97.6</code>,那么 <code>PORT_TO_BIND</code>
<code>IP_TO_BIND</code>不会受到影响。</li>
+<li>如果设置<code>PORT_TO_BIND=20881</code>
<code>IP_TO_BIND=30.5.97.6</code>,那么
<code>PORT_TO_REGISTRY=20881</code>
<code>IP_TO_REGISTRY=30.5.97.6</code> 默认情况下。</li>
</ul>
</blockquote>
-<p><a
href="https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-docker">dubbo-docker-sample</a>
local operation process:</p>
+<p><a
href="https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-docker">dubbo-docker-sample</a>
本地操作过程:</p>
<ol>
-<li>clone project to local</li>
+<li>克隆项目到本地</li>
</ol>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span style="display:flex;"><span>git
clone [email protected]:dubbo/dubbo-docker-sample.git
</span></span><span style="display:flex;"><span><span
style="color:#b58900">cd</span> dubbo-docker-sample
</span></span></code></pre></div><ol start="2">
-<li>package local maven</li>
+<li>包本地的maven</li>
</ol>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span style="display:flex;"><span>mvn
clean install
</span></span></code></pre></div><ol start="3">
-<li>build a mirror by docker build</li>
+<li>通过docker build建立一个镜像</li>
</ol>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span>docker build --no-cache -t dubbo-docker-sample .
-</span></span></code></pre></div><p>Dockerfile</p>
+</span></span></code></pre></div><ol start="4">
+<li>构建镜像</li>
+</ol>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span>FROM openjdk:8-jdk-alpine
</span></span><span style="display:flex;"><span>ADD
target/dubbo-docker-sample-0.0.1-SNAPSHOT.jar app.jar
</span></span><span style="display:flex;"><span>ENV <span
style="color:#268bd2">JAVA_OPTS</span><span
style="color:#719e07">=</span><span
style="color:#2aa198">&#34;&#34;</span>
</span></span><span style="display:flex;"><span>ENTRYPOINT
<span style="color:#b58900">exec</span> java <span
style="color:#268bd2">$JAVA_OPTS</span> -jar /app.jar
-</span></span></code></pre></div><ol start="4">
-<li>Create and run containers from mirroring</li>
+</span></span></code></pre></div><ol start="5">
+<li>从镜像中创建和运行容器</li>
</ol>
-<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span><span style="color:#586e75"># Since we use
the zk registration center, we start zk container first</span>
+<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span><span style="color:#586e75">#
由于我们使用zk注册中心,我们先启动zk容器</span>
</span></span><span style="display:flex;"><span>docker run --name
zkserver --restart always -d zookeeper:3.4.9
</span></span></code></pre></div><div
class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span>docker run -e <span
style="color:#268bd2">DUBBO_IP_TO_REGISTRY</span><span
style="color:#719e07">=</span>30.5.97.6 -e <span
style="color:#268bd2">DUBBO_PORT_TO_REGISTRY</span><span
style="color:#719e07"> [...]
</span></span></code></pre></div><blockquote>
-<p>Suppose the host IP is 30.5.97.6.
-set the provider to register the IP address and port of the registration
center by environment variables
<code>DUBBO_IP_TO_REGISTRY=30.5.97.6</code>
<code>DUBBO_PORT_TO_REGISTRY=20881</code>
-Implement the port mapping by<code>-p 30.5.97.6:20881:20880</code>,
where 20880 is the listening port automatically selected by dubbo. There is no
monitoring IP configuration, so it will listen 0.0.0.0 (all IP).
-After startup, the registered address of provider is 30.5.97.6:20881, and the
listening address of the container is: 0.0.0.0:20880 </p>
+<p>假设主机IP是 30.5.97.6.
+通过环境变量设置提供商注册的IP地址和注册中心的端口 <code>DUBBO_IP_TO_REGISTRY=30.5.97.6</code>
<code>DUBBO_PORT_TO_REGISTRY=20881</code>
+通过以下方式实现端口映射<code>-p 30.5.97.6:20881:20880</code>,
其中20880是由dubbo自动选择的监听端口。没有监控IP的配置,所以它将监听0.0.0.0(所有IP)。
+启动后,提供者的注册地址是30.5.97.6:20881,而容器的监听地址是:0.0.0.0:20880。 </p>
</blockquote>
-<ol start="5">
-<li>Test
-Execute from another host or container</li>
+<ol start="6">
+<li>测试从另一个主机或容器中执行</li>
</ol>
<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-sh" data-lang="sh"><span
style="display:flex;"><span>telnet 30.5.97.6 <span
style="color:#2aa198">20881</span>
</span></span><span style="display:flex;"><span>ls
diff --git a/zh/sitemap.xml b/zh/sitemap.xml
index 859783124a..eb21e38c4b 100644
--- a/zh/sitemap.xml
+++ b/zh/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://dubbo.apache.org/zh/docs3-v2/java-sdk/faq/0/</loc><lastmod>2022-08-01T10:49:31+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority><xhtml:link
rel="alternate" hreflang="en"
href="https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/"/><xhtml:link
rel="alternate" hreflang="zh" href="https://dubbo.a [...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://dubbo.apache.org/zh/docs3-v2/java-sdk/faq/0/</loc><lastmod>2022-08-01T10:49:31+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority><xhtml:link
rel="alternate" hreflang="en"
href="https://dubbo.apache.org/en/docs3-v2/java-sdk/faq/0/"/><xhtml:link
rel="alternate" hreflang="zh" href="https://dubbo.a [...]
\ No newline at end of file