首先把主从服务器redis.conf
daemonize no改成yes redis会在后台运行
把主服务器 redis.conf bind 127.0.0.1 改为0.0.0.0
从服务器:
添加
slaveof 【主ip】 【主端口】
首先把主从服务器redis.conf
daemonize no改成yes redis会在后台运行
把主服务器 redis.conf bind 127.0.0.1 改为0.0.0.0
从服务器:
添加
slaveof 【主ip】 【主端口】