• 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

  • 相关阅读:
    java 枚举类小结 Enum
    hibernate查询
    java装饰者模式理解
    内部类学习
    java使用json将HashMap转化成javabean小例子
    HashMap存储数据赋值javabean简单示例
    java数组转化成集合
    java正则匹配并提取字串
    Windows cmd命令反斜杠问题
    自动化构建工具
  • 原文地址:https://www.cnblogs.com/zhulina-917/p/10610549.html
Copyright © 2020-2023  润新知