Dubbo-admin管理平台的安装

1.到地址 https://github.com/alibaba/dubbo 下载dubbo源码 

 

 

2.解压缩zip文件到 “ D:\技术资料\zookeeper\dubbo-master\dubbo-master” 目录下

 

3.打开命令操作模式,进入D:\技术资料\zookeeper\dubbo-master\dubbo-master\dubbo-admin目录下执行下面的编译命令

D:\技术资料\zookeeper\dubbo-master\dubbo-master\dubbo-admin>  mvn  package -Dmaven.skip.test=true

如果编译时报下面的错误,需要修改 D:\技术资料\zookeeper\dubbo-master\dubbo-master\dubbo-admin目录下的pom.xml文件

[ERROR] Failed to execute goal on project dubbo-admin: Could not resolve dependencies for project com.alibaba:dubbo-admin:war:2.5.4-SNAPSHOT: Could not find artifact com.alibaba:dubbo:jar:2.5.4-SNAPSHOT -> [Help 1]

将 <version>${project.parent.version}</version> 修改为<version>2.5.3</version>

<dependency>

   <groupId>com.alibaba</groupId>
   <artifactId>dubbo</artifactId>
   <version>${project.parent.version}</version>
  </dependency>

<dependency>
   <groupId>com.alibaba</groupId>
   <artifactId>dubbo</artifactId>
   <version>2.5.3</version>
  </dependency>

 4.出现下面的提示,编译成功

5.编译成功后,在D:\技术资料\zookeeper\dubbo-master\dubbo-master\dubbo-admin\target目录下有下面的war包存在

 

 

6.把这个dubbo-admin-2.5.4-SNAPSHOT.war拷贝到 tomcat下的webapps目录下

 

 7 修改tomcat的端口为8088,修改方法如下,打到conf下的文件 server.xml,因为zookeeper会用到8080的端口,所以为了不冲突,把Tomcat的端口改一下。记得一定要改!!!

 

 

 8 启动tomcat后,tomcat启动命令为 C:\tomcat\bin>startup.bat,启动后,dubbo-admin-2.5.4-SNAPSHOT.war包会自动解压,在tomcat/webapps目录下生成一个dubbo-admin-2.5.4-SNAPSHOT文件夹

 修改dubbo-admin-2.5.4-SNAPSHOT/WEB-INF/文件夹下的dubbo.properties文件为如下内容

 

9 先启动zookeeper,然后再启动tomcat,在浏览器输入 http://localhost:8088/dubbo-admin-2.5.4-SNAPSHOT/ 

 弹出登录框

,输入root/root后,显示下面页面

 

posted @ 2017-08-21 22:35  拜占廷船长  阅读(33482)  评论(2编辑  收藏  举报