redis操作

来源:互联网 发布:淘宝和一淘哪个好用 编辑:程序博客网 时间:2024/04/28 17:57

cd  pro/redis/6379/src   

redis服务:./redis-server ../redis.conf  

redis后台服务:./redis-server ../redis.conf    &

redis后台服务:修改reids.conf  配置文件  daemonizeyes

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里添加daemonizeyes

flushall


flushdb





0 0