zookeeper报错java.net.ConnectException: Connection refused: no further information

zookeeper报错java.net.ConnectException: Connection refused: no further information 

这是在linux 启动

具体异常信息: 
java.net.ConnectException: Connection refused: no further information 
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) 
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) 
at org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1141)2018082314:29:30,700[localhoststartStop1SendThread(192.168.43.31:2181)][org.apache.zookeeper.ClientCnxnSocketNIO][DEBUG]Ignoringexceptionduringshutdowninputjava.nio.channels.ClosedChannelExceptionatsun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780)atsun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399)atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)atorg.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1141)2018−08−2314:29:30,700[localhost−startStop−1−SendThread(192.168.43.31:2181)][org.apache.zookeeper.ClientCnxnSocketNIO]−[DEBUG]Ignoringexceptionduringshutdowninputjava.nio.channels.ClosedChannelExceptionatsun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780)atsun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399)atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)atorg.apache.zookeeper.ClientCnxnSendThread.cleanup(ClientCnxn.java:1246) 
at org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1170)2018082314:29:30,701[localhoststartStop1SendThread(192.168.43.31:2181)][org.apache.zookeeper.ClientCnxnSocketNIO][DEBUG]Ignoringexceptionduringshutdownoutputjava.nio.channels.ClosedChannelExceptionatsun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)atsun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:207)atorg.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1170)2018−08−2314:29:30,701[localhost−startStop−1−SendThread(192.168.43.31:2181)][org.apache.zookeeper.ClientCnxnSocketNIO]−[DEBUG]Ignoringexceptionduringshutdownoutputjava.nio.channels.ClosedChannelExceptionatsun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)atsun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:207)atorg.apache.zookeeper.ClientCnxnSendThread.cleanup(ClientCnxn.java:1246) 
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170) 
异常原因: 
zookeeper未启动。 
解决方法: 
这里写图片描述 
再次启动tomcat,成功。

直接在window下运行dubbo的jar 包

1.首先开启 

若没有错误

下载dubbo的客户端

 

 

开启命令行 打包 直接在地址栏中输入 cmd 回车 会产生一个jar包

打包dubbo-admin

mvn clean package -Dmaven.test.skip=true 

 

 运行

4、运行dubbo-admin     直接在地址栏中输入 cmd 回车

java -jar dubbo-admin-0.0.1-SNAPSHOT.jar  运行管理控制台

正常启动

在浏览器中输入localhost :7001

用户名 密码时 root

 

 

posted @ 2019-03-27 20:38  纳兰容若♫  阅读(9667)  评论(0编辑  收藏  举报