版本:CentOS7,redis3.0.4
第一步:关闭虚拟机的防火墙(firewall以及iptables)
systemctl stop iptables
systemctl stop firewalld
第二步:修改redis.conf配置文件,找到bind这行,将原本的bind 127.0.0.1改为bind 0.0.0.0
第三步:测试连接
版本:CentOS7,redis3.0.4
第一步:关闭虚拟机的防火墙(firewall以及iptables)
systemctl stop iptables
systemctl stop firewalld
第二步:修改redis.conf配置文件,找到bind这行,将原本的bind 127.0.0.1改为bind 0.0.0.0
第三步:测试连接