1、首先看redis.conf中是否指定bind 127.0.0.1 指定说明只能本地访问 2、看是否开启防火墙 3、https://www.pianshen.com/article/721735015/