Exception in thread "main" redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster
at redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnection(JedisSlotBasedConnectionHandler.java:57)
at redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnectionFromSlot(JedisSlotBasedConnectionHandler.java:74)
at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:116)
at redis.clients.jedis.JedisClusterCommand.run(JedisClusterCommand.java:31)
at redis.clients.jedis.JedisCluster.get(JedisCluster.java:124)
at com.qf.Test1.TestJedis2.main(TestJedis2.java:31)
解决方案: 防火墙没有关 回到crt界面关闭防火墙即可
reboot 重启命令
shutdown –h 关机不重启
shutdown –r 关机后立即重
ifconfig windows :ipconfig
启用:ifconfig eth0 up
禁用:if config eth0 down
ping :查看网络是否连通
关闭防火墙:
centos 6
service iptables stop
sudo chkconfig iptables off
centos7
systemctl stop firewalld.service #停止
systemctl disable firewalld.service
netstat :
查看占用端口的进程号:netstat -anp|grep 8080
查看端口状态: netstat -an | grep 2181
查看端口是否被占用: netstat -tunlp |grep 2181
Kill -9 进程号