Opening socket connection to server Will not attempt to authenticate using SASL (unknown error)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014270696/article/details/80717439

本地连接虚拟机上的zookeeper报错:

INFO - Opening socket connection to server 192.168.25.130/192.168.25.130:2181. Will not attempt to authenticate using SASL (unknown error)
DEBUG -  [DUBBO] Received heartbeat from remote channel /192.168.25.1:20880, cause: The channel has no data-transmission exceeds a heartbeat period: 60000ms, dubbo version: 2.5.3, current host: 192.168.25.1
 WARN - Session 0x10000035df90002 for server null, unexpected error, closing socket connection and attempting reconnect

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


最近学习dubbo 需要使用zookeeper做为注册中心,按照教程在linux虚拟机上安装好了之后,却发现在本地无法连接,一直报连接超时的错误,后面百度了一下,发现是因为linux虚拟机上防火墙没有关闭的原因

很多的教程只是说了使用  service iptables stop 来关闭防火墙,这个方式只是适用于centos7之前的系统版本,之后的版本不适用了。输入之后会报错:command not found(命令未找到),所以需要我们先安装service ,

第二点:有朋友可能已经安装了service,但是还是无法关闭防火墙,那是因为你没有使用 root身份执行命令

解决办法:在命令前加上sudo,如:sudo services iptables stop 


下面给出完整解决方法:

1,首先安装service

yum install iptables-services

2,执行关闭防火墙

sudo service iptables stop


本次博文,仅用于记录日常学习中遇到的问题,避免再犯,也希望可以帮助后来人解决问题。


有个小小的建议,遇到技术上的问题,最好先用google,一般问题都能得到解决,很多大神都多次推荐的

猜你喜欢

转载自blog.csdn.net/u014270696/article/details/80717439