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

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

这是在linux 启动

https://blog.csdn.net/laychityun/article/details/81980596
 

具体异常信息: 
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)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.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)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.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未启动。 
解决方法: 
zookeeper报错java.net.ConnectException: Connection refused: no further information 
再次启动tomcat,成功。

直接在window下运行dubbo的jar 包

1.首先开启

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

若没有错误

下载dubbo的客户端

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

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

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

打包dubbo-admin

mvn clean package -Dmaven.test.skip=true

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

运行

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

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

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

正常启动

在浏览器中输入localhost :7001

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

用户名 密码时 root

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

上一篇:C#操作Word文档(加密、解密、对应书签插入分页符)


下一篇:InfluxDB 1.6文档