Skip to content

Commit d963c1e

Browse files
committed
add supported zk version description
1 parent 1a59aa2 commit d963c1e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -503,32 +503,36 @@ nacos.discovery.context-path=
503503

504504
1. 修改build.sh/build.bat,将config-service和admin-service的maven编译命令更改为
505505
```shell
506-
mvn clean package -Pgithub -DskipTests -pl apollo-configservice,apollo-adminservice -am -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
506+
mvn clean package -Pgithub -DskipTests -pl apollo-configservice,apollo-adminservice -am -Dapollo_profile=github,consul-discovery -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
507507
```
508508

509509
2. 分别修改apollo-configservice和apollo-adminservice安装包中config目录下的application-github.properties,配置consul服务器地址
510510
```properties
511511
spring.cloud.consul.host=127.0.0.1
512512
spring.cloud.consul.port=8500
513513
```
514-
3.分别修改`apollo-configservice``apollo-adminservice`服务对应的JVM启动参数
515-
```properties
516-
-Dapollo_profile=github,consul-discovery
517-
```
518514

519515
##### 2.2.1.2.9 启用外部Zookeeper服务注册中心替换内置eureka
520516
1. 修改build.sh/build.bat,将`config-service``admin-service`的maven编译命令更改为
521517
```shell
522-
mvn clean package -Pgithub -DskipTests -pl apollo-configservice,apollo-adminservice -am -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
518+
mvn clean package -Pgithub -DskipTests -pl apollo-configservice,apollo-adminservice -am -Dapollo_profile=github,zookeeper-discovery -Dspring_datasource_url=$apollo_config_db_url -Dspring_datasource_username=$apollo_config_db_username -Dspring_datasource_password=$apollo_config_db_password
523519
```
524520
2. 分别修改apollo-configservice和apollo-adminservice安装包中config目录下的application-github.properties,配置zookeeper服务器地址
525521
```properties
526522
spring.cloud.zookeeper.connect-string=127.0.0.1:2181
527523
```
528-
3.分别修改`apollo-configservice``apollo-adminservice`服务对应的JVM启动参数
524+
3.本地调试需要分别修改`apollo-configservice``apollo-adminservice`服务对应的JVM启动参数
529525
```properties
530526
-Dapollo_profile=github,zookeeper-discovery
531527
```
528+
4.Zookeeper版本说明
529+
* 支持Zookeeper3.5.x以上的版本;
530+
* 如果apollo-configservice应用启动报端口占用,请检查Zookeeper的如下配置;
531+
> 注:Zookeeper3.5.0新增了内置的[AdminServer](https://zookeeper.apache.org/doc/r3.5.0-alpha/zookeeperAdmin.html)
532+
```properties
533+
admin.enableServer
534+
admin.serverPort
535+
```
532536

533537
### 2.2.2 部署Apollo服务端
534538

0 commit comments

Comments
 (0)