This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 69cf8da  fix error doc (#986)
69cf8da is described below

commit 69cf8daf5b2da9937edf35787de0bdeb81cd4834
Author: Wang Chengming <[email protected]>
AuthorDate: Mon Nov 1 10:30:52 2021 +0800

    fix error doc (#986)
---
 content/zh/docs/references/qos.md | 40 +++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/content/zh/docs/references/qos.md 
b/content/zh/docs/references/qos.md
index 244af15..c0e0fe8 100644
--- a/content/zh/docs/references/qos.md
+++ b/content/zh/docs/references/qos.md
@@ -12,13 +12,13 @@ dubbo `2.5.8` 新版本增加了 QOS 模块,提供了新的 telnet 命令支
 新版本的 telnet 端口 与 dubbo 协议的端口是不同的端口,默认为 `22222`,可通过配置文件`dubbo.properties` 修改:
 
 ```
-dubbo.application.qos.port=33333
+dubbo.application.qos-port=33333
 ```
 
 或者通过设置 JVM 参数:
 
 ```
--Ddubbo.application.qos.port=33333
+-Ddubbo.application.qos-port=33333
 ```
 
 ## 安全
@@ -26,13 +26,13 @@ dubbo.application.qos.port=33333
 默认情况下,dubbo 接收任何主机发起的命令,可通过配置文件`dubbo.properties` 修改:
 
 ```
-dubbo.application.qos.accept.foreign.ip=false
+dubbo.application.qos-accept-foreign-ip=false
 ```
 
 或者通过设置 JVM 参数:
 
 ```
--Ddubbo.application.qos.accept.foreign.ip=false
+-Ddubbo.application.qos-accept-foreign-ip=false
 ```
 
 拒绝远端主机发出的命令,只允许服务本机执行
@@ -173,11 +173,11 @@ QoS提供了一些启动参数,来对启动进行配置,他们主要包括
 
 | 参数               | 说明              | 默认值 |
 | ------------------ | ----------------- | ------ |
-| qosEnable          | 是否启动QoS       | true   |
-| qosPort            | 启动QoS绑定的端口 | 22222  |
-| qosAcceptForeignIp | 是否允许远程访问  | false  |
+| qos-enable          | 是否启动QoS       | true   |
+| qos-port            | 启动QoS绑定的端口 | 22222  |
+| qos-accept-foreign-ip | 是否允许远程访问  | false  |
 
-> 
注意,从2.6.4/2.7.0开始,qosAcceptForeignIp默认配置改为false,如果qosAcceptForeignIp设置为true,有可能带来安全风险,请仔细评估后再打开。
+> 
注意,从2.6.4/2.7.0开始,qos-accept-foreign-ip默认配置改为false,如果qos-accept-foreign-ip设置为true,有可能带来安全风险,请仔细评估后再打开。
 
 QoS参数可以通过如下方式进行配置
 
@@ -191,18 +191,18 @@ QoS参数可以通过如下方式进行配置
 ### 使用系统属性方式进行配置
 
 ```
--Ddubbo.application.qos.enable=true
--Ddubbo.application.qos.port=33333
--Ddubbo.application.qos.accept.foreign.ip=false
+-Ddubbo.application.qos-enable=true
+-Ddubbo.application.qos-port=33333
+-Ddubbo.application.qos-accept-foreign-ip=false
 ```
 
 ### 使用dubbo.properties文件进行配置
 
 在项目的`src/main/resources`目录下添加dubbo.properties文件,内容如下:
 ```
-dubbo.application.qos.enable=true
-dubbo.application.qos.port=33333
-dubbo.application.qos.accept.foreign.ip=false
+dubbo.application.qos-enable=true
+dubbo.application.qos-port=33333
+dubbo.application.qos-accept-foreign-ip=false
 ```
 
 ### 使用XML方法进行配置
@@ -218,9 +218,9 @@ dubbo.application.qos.accept.foreign.ip=false
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://dubbo.apache.org/schema/dubbo 
http://dubbo.apache.org/schema/dubbo/dubbo.xsd";>
   <dubbo:application name="demo-provider">
-    <dubbo:parameter key="qos.enable" value="true"/>
-    <dubbo:parameter key="qos.accept.foreign.ip" value="false"/>
-    <dubbo:parameter key="qos.port" value="33333"/>
+    <dubbo:parameter key="qos-enable" value="true"/>
+    <dubbo:parameter key="qos-accept-foreign-ip" value="false"/>
+    <dubbo:parameter key="qos-port" value="33333"/>
   </dubbo:application>
   <dubbo:registry address="multicast://224.5.6.7:1234"/>
   <dubbo:protocol name="dubbo" port="20880"/>
@@ -234,9 +234,9 @@ dubbo.application.qos.accept.foreign.ip=false
 如果是spring-boot的应用,可以在`application.properties`或者`application.yml`上配置:
 
 ```
-dubbo.application.qosEnable=true
-dubbo.application.qosPort=33333
-dubbo.application.qosAcceptForeignIp=false
+dubbo.application.qos-enable=true
+dubbo.application.qos-port=33333
+dubbo.application.qos-accept-foreign-ip=false
 ```
 
 

Reply via email to