How to disable persistence with redis?

后端 未结 4 546
闹比i
闹比i 2021-01-30 03:06

I was wondering how to disable presistence in redis. There is mention of the possibility of doing this here: http://redis.io/topics/persistence. I mean it in the exact same sens

4条回答
  •  太阳男子
    2021-01-30 03:37

    For RDB snapshotting you can disable it by using

    $ sed -e '/save/ s/^#*/#/' -i /etc/redis/redis.conf && sudo service redis-server restart

    It will comment the save lines in redis.conf and restarts the redis-server

提交回复
热议问题