redis-cli -h ip -p port 连不上远程server
修改配置文件/etc/redis/redis.conf,将
bind 127.0.0.1
改为bind 0.0.0.0。然后重启服务。重新连接, redis-cli -h ip ping,返回PONG表示连接成功。
redis-cli -h ip -p port 连不上远程server
修改配置文件/etc/redis/redis.conf,将
bind 127.0.0.1
改为bind 0.0.0.0。然后重启服务。重新连接, redis-cli -h ip ping,返回PONG表示连接成功。