Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kishan3
Created April 19, 2016 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishan3/8900af56b1d1f3ca6df4c52b3cd8cb2a to your computer and use it in GitHub Desktop.
Save kishan3/8900af56b1d1f3ca6df4c52b3cd8cb2a to your computer and use it in GitHub Desktop.
redis installation
sudo apt-get install redis-server
# Configure redis to use sockets
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig
# Disable Redis listening on TCP by setting 'port' to 0
sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf
# Enable Redis socket for default Debian / Ubuntu path
echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf
# Activate the changes to redis.conf
sudo service redis-server restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment