错误如下:Exception in thread “main” redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster
这时候很有可能是虚拟机防火墙的问题,尝试关闭防火墙
关闭防火墙命令:
systemctl stop firewalld.service
查看防火墙是否关闭命令:
systemctl status firewalld.service
如果出现 Active: inactive (dead) 证明已经关闭