Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Last active September 9, 2020 05:23
Show Gist options
  • Save todiadiyatmo/c609f322b25793d80b03 to your computer and use it in GitHub Desktop.
Save todiadiyatmo/c609f322b25793d80b03 to your computer and use it in GitHub Desktop.
redis install ubuntu
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server

redis-cli

CONFIG SET dir /tmp
CONFIG SET dbfilename temp.rdb

/etc/redis/redis.conf

dir /tmp
maxmemory 32mb
maxmemory-policy volatile-lru

# Comment this line to disable saving

#save 900 
#save 300 10
#save 60 10000

stop-writes-on-bgsave-error no

Redis Restart

service redis-server restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment