开启 redis 远程连接
- 编辑 redis 配置文件 redis.conf
# 如果需要开启连个访问连接时,一个是本地连接,一个是远程连接
bind 127.0.0.1 192.168.174.174
# 如果是希望任何一台主机都可以连接,那么可以直接注释以下这一行,比如
# bind 127.0.0.1- 开启公网连接 redis
protected-mode no- 重启 redis
sudo /etc/init.d/redis restart
MySQL 主从复制
Redis 的持久化