redis常见问题

来源:互联网 发布:无线通信算法工程师 编辑:程序博客网 时间:2024/06/05 19:20

1,redis misconf redis is configured to save rdb snapshots but is currently not able to persist on disk

解决方案:redis-cli:config set stop-writes-on-bgsave-error no


2,python 连接redis方式:import redis ; r=redis.StrictRedis(host='127.0.0.1',port=6397,db=0);