narenarya

Redis disabling snapshotting RDB

Aug 26th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #Linux command for commenting the line in a file starting with BBB
  2.  
  3. $ sed -e '/BBB/ s/^#*/#/' -i file
  4.  
  5. we can use this option to disable snapshotting Redis RDB
  6.  
  7. $ sed -e '/save/ s/^#*/#/' -i /etc/redis/redis.conf && sudo service redis-server restart
Advertisement
Add Comment
Please, Sign In to add comment