1、首先到地址 https://github.com/alibaba/dubbo 下载dubbo源码
2、解压缩zip文件到 “ D:技术资料zookeeperdubbo-masterdubbo-master” 目录下
3、打开命令操作模式,进入D:技术资料zookeeperdubbo-masterdubbo-masterdubbo-admin目录下执行下面的编译命令
D:技术资料zookeeperdubbo-masterdubbo-masterdubbo-admin> mvn package -Dmaven.skip.test=true
如果编译时报下面的错误,需要修改 D:技术资料zookeeperdubbo-masterdubbo-masterdubbo-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:技术资料zookeeperdubbo-masterdubbo-masterdubbo-admin arget目录下有下面的war包存在
6、把这个dubbo-admin-2.5.4-SNAPSHOT.war拷贝到 tomcat下的webapps目录下
7、 启动tomcat后, 修改dubbo-admin-2.5.4-SNAPSHOT/WEB-INF/文件夹下的dubbo.properties文件为如下内容
8、 先启动zookeeper,然后再启动tomcat,在浏览器输入 http://localhost:8088/dubbo-admin-2.5.4-SNAPSHOT/
弹出登录框
输入root/root后,登陆成功!