标签:
下载dubbo的admin包 http://download.csdn.net/detail/liuweiqiang_neu/8086889
1、解压:tar cvf dubbo-admin-2.5.4.war
2、linux下放一个tomcat服务器,将解压包放置到这个路径:/apache-tomcat-6.0.32/webapps/ROOT
3、修改下配置文件:apache-tomcat-6.0.32/webapps/ROOT/WEB-INF/dubbo.properties
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.admin.root.password=root
dubbo.admin.guest.password=123
这之前请参见我的另一篇文章搭建下zookeeper环境。
启动tomcat,报错:
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
SEVERE: The web application [] appears to have started a thread named [main-SendThread(127.0.0.1:2181)] but has failed to stop it. This is very likely to create a memory leak.
Nov 13, 2015 3:45:14 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [main-EventThread] but has failed to stop it. This is very likely to create a memory leak.
Nov 13, 2015 3:45:14 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Exception in thread "ZkClient-EventThread-13-127.0.0.1:2181" java.lang.NullPointerException
at org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java:107)
at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:83)
at org.apache.log4j.PatternLayout.format(PatternLayout.java:506)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.info(Category.java:666)
at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:82)
修改了下配置文件/ect/hosts 添加一行:127.0.0.1 localhost。解决。
启动后看到了监控页面http://***.*.*.***:8080/governance/providers
标签:
原文地址:http://my.oschina.net/zjItLife/blog/530372