1.我先检查了虚拟机能不能ping

2.再检查了zookeeper有没有开启

3.又检查了数据库能不能连上

 

三项都没有问题

依旧出不来    信息: StartingProtocolHandler ["http-bio-8003"]


java.net.ConnectException: Connection timed out: no further information


4.我在resource包里加了log4j文件,打出下边的错误

 

 

java.net.ConnectException:Connection timed out: no further information

atsun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

atsun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)

atorg.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

atorg.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)

 

java.nio.channels.ClosedChannelException        

atsun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:819)        

atsun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:434)        

atorg.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:207)        

atorg.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)        

atorg.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)


java.net.ConnectException: Connection timed out: no further information



原因:防火墙没关

 

运行 systemctl stop firewalld.service 关闭防火墙


java.net.ConnectException: Connection timed out: no further information


成功!


java.net.ConnectException: Connection timed out: no further information


相关文章:

  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2020-10-20
  • 2022-02-03
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案