整合redis遇到的坑,所有配置都是没问题的,在xhell上能连接上redis,但是在springboot整合redis的时候就是连接不上。 最后发现需要关闭虚拟机的防火墙: service iptables stop