Java-dubbo demo部署

 

1.安装本地ZooKeeper

https://www.cnblogs.com/personblog/p/13391810.html


2.搭建provider、consumer

代码地址:https://github.com/apache/dubbo/tree/master/dubbo-demo/dubbo-demo-api

操作流程:https://www.cnblogs.com/gossip/p/6013025.html

先在父级目录:mvn install -Dmaven.test.skip=true
再在子dubbo-demo目录:mvn package -Dmaven.test.skip=true

java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-provider- ${project.version} .jar

java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-api-consumer- ${project.version} .jar

         dubbo-api : 存放公共接口(service); 
         dubbo-consumer : 调用远程服务(调用service); 
         dubbo-provider : 提供远程服务(impl) 

 

3.搭建dubbo-admin平台

代码地址:https://github.com/apache/dubbo-admin

maven本地仓库建立:https://blog.csdn.net/caidingnu/article/details/88374211

maven打包问题:https://www.cnblogs.com/yibao/p/14023789.html

nodejs下载地址:https://nodejs.org/dist/v9.11.1/node-v9.11.1-win-x64.zip

打包启动:https://my.oschina.net/u/4589216/blog/4481699

     java -jar dubbo-admin-server-0.3.0.jar --server.port=8090

     http://localhost:8090,root/root登录

 

posted @ 2021-10-21 11:23  南方的墙  阅读(122)  评论(0编辑  收藏  举报