Skip to content

Commit 8131381

Browse files
docs: add note for confiservice and adminservice
1 parent 5eb320f commit 8131381

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/en/deployment/distributed-deployment-guide.md

+12
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,30 @@ EUREKA_INSTANCE_IP_ADDRESS=1.2.3.4
117117

118118
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`.
119119

120+
>Note: The default registration ports for apollo-configservice and apollo-adminservice are 8080 and 8090 respectively.
121+
120122
JVM System Property example.
121123

122124
```properties
125+
# apollo-configservice
123126
-Deureka.instance.homePageUrl=http://1.2.3.4:8080
124127
-Deureka.instance.preferIpAddress=false
128+
129+
# apollo-adminservice
130+
-Deureka.instance.homePageUrl=http://1.2.3.4:8090
131+
-Deureka.instance.preferIpAddress=false
125132
```
126133

127134
OS Environment Variable Example.
128135

129136
```properties
137+
# apollo-configservice
130138
EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8080
131139
EUREKA_INSTANCE_PREFER_IP_ADDRESS=false
140+
141+
# apollo-adminservice
142+
EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8090
143+
EUREKA_INSTANCE_PREFER_IP_ADDRESS=false
132144
```
133145

134146
### 1.4.4 Specifying apollo-configservice address directly

docs/zh/deployment/distributed-deployment-guide.md

+13
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,31 @@ EUREKA_INSTANCE_IP_ADDRESS=1.2.3.4
117117

118118
可以分别修改`apollo-configservice``apollo-adminservice`的startup.sh,通过JVM System Property传入-D参数,也可以通过OS Environment Variable传入,下面的例子会指定注册的URL为`http://1.2.3.4:8080`
119119

120+
> 注:apollo-configservice和apollo-adminservice默认注册端口分别为8080、8090
121+
122+
120123
JVM System Property示例:
121124

122125
```properties
126+
# apollo-configservice
123127
-Deureka.instance.homePageUrl=http://1.2.3.4:8080
124128
-Deureka.instance.preferIpAddress=false
129+
130+
# apollo-adminservice
131+
-Deureka.instance.homePageUrl=http://1.2.3.4:8090
132+
-Deureka.instance.preferIpAddress=false
125133
```
126134

127135
OS Environment Variable示例:
128136

129137
```properties
138+
# apollo-configservice
130139
EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8080
131140
EUREKA_INSTANCE_PREFER_IP_ADDRESS=false
141+
142+
# apollo-adminservice
143+
EUREKA_INSTANCE_HOME_PAGE_URL=http://1.2.3.4:8090
144+
EUREKA_INSTANCE_PREFER_IP_ADDRESS=false
132145
```
133146

134147
### 1.4.4 直接指定apollo-configservice地址

0 commit comments

Comments
 (0)