外部访问Redis

安装Redis后,需要在外部进行访问

PS:生产环境请勿任意将Redis服务暴漏出来

修改配置

1
2
3
4
# 修改配置文件
vim redis.conf

## :75 将bind 172.0.0.1 -::1 改成 bind 0.0.0.0

设置完成