From 813138180430158b3924a195564fe7411dd41f78 Mon Sep 17 00:00:00 2001 From: bo <821806480@qq.com> Date: Sun, 2 Mar 2025 17:59:04 +0800 Subject: [PATCH] docs: add note for confiservice and adminservice --- docs/en/deployment/distributed-deployment-guide.md | 12 ++++++++++++ docs/zh/deployment/distributed-deployment-guide.md | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/docs/en/deployment/distributed-deployment-guide.md b/docs/en/deployment/distributed-deployment-guide.md index 7988dea78b4..fc6a5dff461 100644 --- a/docs/en/deployment/distributed-deployment-guide.md +++ b/docs/en/deployment/distributed-deployment-guide.md @@ -117,18 +117,30 @@ EUREKA_INSTANCE_IP_ADDRESS=1.2.3.4 You can modify the startup.sh of `apollo-configservice` and `apollo-adminservice` respectively, passing in the -D parameter via JVM System Property, or via OS Environment Variable, the following example will specify the URL to register URL as `http://1.2.3.4:8080`. +>Note: The default registration ports for apollo-configservice and apollo-adminservice are 8080 and 8090 respectively. + JVM System Property example. ```properties +# apollo-configservice -Deureka.instance.homePageUrl=http://1.2.3.4:8080 -Deureka.instance.preferIpAddress=false + +# apollo-adminservice +-Deureka.instance.homePageUrl=http://1.2.3.4:8090 +-Deureka.instance.preferIpAddress=false ``` OS Environment Variable Example. ```properties +# apollo-configservice EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8080 EUREKA_INSTANCE_PREFER_IP_ADDRESS=false + +# apollo-adminservice +EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8090 +EUREKA_INSTANCE_PREFER_IP_ADDRESS=false ``` ### 1.4.4 Specifying apollo-configservice address directly diff --git a/docs/zh/deployment/distributed-deployment-guide.md b/docs/zh/deployment/distributed-deployment-guide.md index 2570e202eb2..661f7942b01 100644 --- a/docs/zh/deployment/distributed-deployment-guide.md +++ b/docs/zh/deployment/distributed-deployment-guide.md @@ -117,18 +117,31 @@ EUREKA_INSTANCE_IP_ADDRESS=1.2.3.4 可以分别修改`apollo-configservice`和`apollo-adminservice`的startup.sh,通过JVM System Property传入-D参数,也可以通过OS Environment Variable传入,下面的例子会指定注册的URL为`http://1.2.3.4:8080`。 +> 注:apollo-configservice和apollo-adminservice默认注册端口分别为8080、8090 + + JVM System Property示例: ```properties +# apollo-configservice -Deureka.instance.homePageUrl=http://1.2.3.4:8080 -Deureka.instance.preferIpAddress=false + +# apollo-adminservice +-Deureka.instance.homePageUrl=http://1.2.3.4:8090 +-Deureka.instance.preferIpAddress=false ``` OS Environment Variable示例: ```properties +# apollo-configservice EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8080 EUREKA_INSTANCE_PREFER_IP_ADDRESS=false + +# apollo-adminservice +EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8090 +EUREKA_INSTANCE_PREFER_IP_ADDRESS=false ``` ### 1.4.4 直接指定apollo-configservice地址