redis 设置外网可访问
前提是你已经把redis的端口放到了防火墙计划中,
/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT/etc/rc.d/init.d/iptables save更改redis.conf 文件:/etc/redis/
bind 127.0.0.1protected-mode yes更改为
# bind 127.0.0.1protected-mode no 然后重启redis,
前提是你现在已经运行着redis呢
关闭redis
ps -ef|grep redis kill -9 {pid}
redis-cli是你的安装路径, 即 make install的时候, 你会指定一个路径,
重启redis
./src/redis-server /usr/local/redis-5.0.5/redis.conf
redis-server 同样也是安装路径下的.
这样设置外网访问就成功了.

浙公网安备 33010602011771号