原文地址:http://blog.csdn.net/shawearn1027/article/details/55097368
一、下载
在写这篇笔记的时候, http://code.alibabatech.com/ 已经停止维护,所以无法从官网下载 Dubbo 管理端,故提供此下载地址: 点击下载
二、安装
将 dubbo-admin.zip 安装包解压到 tomcat 服务器中并做相应配置即可。
三、配置
找到解压后的 dubbo-admin 中找到 WEB-INF/dubbo.properties 文件并修改其中配置:
dubbo.registry.address=zookeeper://192.168.10.41:4183
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
完成步骤一、二、三之后,启动 zookeeper 服务后再启动 tomcat 服务器,成功后便可在浏览器中访问并看到如下界面,说明已经安装成功。
【注意】
若 JDK 为 1.8,启动 dubbo-admin 时会报以下错误,然而在 1.7 下则不报此错误:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 50 more