Created
April 19, 2016 11:06
-
-
Save kishan3/8900af56b1d1f3ca6df4c52b3cd8cb2a to your computer and use it in GitHub Desktop.
redis installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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