Skip to content

Commit

Permalink
docs: add note for confiservice and adminservice
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbobo131415 authored and nobodyiam committed Mar 3, 2025
1 parent 5eb320f commit 0fce162
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/en/deployment/distributed-deployment-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions docs/zh/deployment/distributed-deployment-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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地址
Expand Down

0 comments on commit 0fce162

Please sign in to comment.