1 Before Connect Remote Redis Server
You should install redis on your linux machine. Run the following commands and install it.
1 | $ sudo yum install epel-release |
2 command
1 | $ redis-cli -h {host_ip} -p {port} -a {passowrd} |
3 ERROR: Could not connect to Redis at 192.168.1.17:6379: No route to host
1 | iptables -N REDIS |
4 Could not connect to Redis at 10.18.243.168:6379: Connection refused
change the conf
file:
1 | bind 127.0.0.1 ----> bind 0.0.0.0 |
and restart redis server.
Reference
Redis 服務端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused
Redis系列~(十七)Could not connect to Redis No route to host問題解決
写在最后
欢迎大家关注鄙人的公众号【麦田里的守望者zhg】,让我们一起成长,谢谢。
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment