open redis port for remote connections

edit /etc/redis.conf

Add below line after bind 127.0.0.1, then try redis-cli -h xxx.xxx.xxx.xxx ping, it should work now.

bind 0.0.0.0

原文地址:https://www.cnblogs.com/ilovewindy/p/4552547.html