Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add note for confiservice and adminservice #5355

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading