解决Exception in thread “main“ redis.clients.jedis.exceptions. 1.在网上找了很多问题,很大的原因就是防火墙没有关闭 ,需要输入一下命令即可,自己的电脑上显示关了没有用,必须在虚拟机中输入下面命令 systemctl stop firewalld.service 2.注释掉 bind 127.0.0.1或者改成自己的虚拟机地址 3.关闭安全模式: protected-mode no