redis 内网ip 17.1.19.3 本机用 ./redis-cli -p 12345 -a 密码 的方式能正常操作
本地以下命令显示
iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
REDIS tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:12345
。。。
。。。
Chain REDIS (1 references)
target prot opt source destination
ACCEPT all -- 127.0.0.1 0.0.0.0/0
ACCEPT all -- 17.1.19.4 0.0.0.0/0
ACCEPT all -- 17.1.19.3 0.0.0.0/0
LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 4 prefix "unauth-redis-access"
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
现在情况是内网17.1.19.4机器 php 访问17.1.19.3可正常操作redis
但是17.1.19.3本机php 访问127.0.0.1就出现 以下错误
An uncaught Exception was encountered
Type: RedisException
Message: Redis server 127.0.0.1:12345 went away
。。。
请问这是什么原因?如何解决?
redis.conf 现在的 bind 是啥?