cd pro/redis/6379/src
redis服务:./redis-server ../redis.conf
redis后台服务:./redis-server ../redis.conf &
redis后台服务:修改reids.conf 配置文件 daemonize yes
redis客户:./redis-cli -p 6379
ps -ef | grep reds
netstat -lntp | grep 6379
kill -9 25952
info replicaiton
slaveof 127.0.0.1 6379
slaveof no one
同步回写即SAVE命令
异步回写即BGSAVE命令
./redis-sentinel ../sentinel.conf
sentinel后台进程:sentinel.conf里添加daemonize yes
flushall
flushdb
转载请注明原文地址: https://ju.6miu.com/read-673994.html