File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Spring Boot With Dubbo
5
5
### 注意事项
6
6
7
7
由于Dubbo的版本并不是特别活跃,加上和Spring Boot的jar包适配等问题,所以请使用最新的Dubbo 3.0.0-SNAPSHOT版本, 目前还有很多工作调整
8
- 地址为: https://github.com/linux-china/dubbo
8
+ 地址为: https://github.com/linux-china/dubbo3
9
9
10
10
### 注册中心(Registry)
11
11
目前主要是支持Redis和ZooKeeper这两个注册中心,主要是这两个服务非常普遍,同时由于Docker的流行,启动这两个服务也非常简单。
@@ -55,7 +55,7 @@ Spring Boot With Dubbo
55
55
* 调用docker-compose启动对应的注册中心: docker-compose up -d
56
56
* 编译工程 ` mvn clean package -Dmaven.test.skip `
57
57
* 将 server 打包成 docker image : ` docker build -t dubbo-demo:latest spring-boot-dubbo-server `
58
- * 运行 server : ` docker run --rm --name=dubbo-demo -p 20890:20880 -e EXPORT_PORT=20890 -e EXPORT_HOST=10.0.1.126 -e ZK_HOST=10.0.1.126 dubbo-demo `
58
+ * 运行 server (注意修改环境变量) : ` docker run --rm --name=dubbo-demo -p 20890:20880 -e EXPORT_PORT=20890 -e EXPORT_HOST=YOUR_HOST_HERE -e ZK_HOST=YOUR_HOST_HERE dubbo-demo `
59
59
* 启动 SpringBootDubboClientApplication
60
60
* 打开浏览器访问 http://localhost:2080
61
61
You can’t perform that action at this time.
0 commit comments