Skip to content

Instantly share code, notes, and snippets.

@alirezas
Last active November 17, 2015 14:52
Show Gist options
  • Save alirezas/ba9b8f919fe1474a246b to your computer and use it in GitHub Desktop.
Save alirezas/ba9b8f919fe1474a246b to your computer and use it in GitHub Desktop.
wget http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable/deps
make hiredis jemalloc linenoise lua
cd ..
make install
sysctl vm.overcommit_memory=1
sysctl -w fs.file-max=100000
cd utils
sudo ./install_server.sh
service redis_6379 status
service redis_6379 start
nano /etc/redis/6379.conf
# find # requirepass foobared
#replace it with your password
requirepass somePassword
service redis_6379 restart
redis-cli
eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment