Skip to content

Instantly share code, notes, and snippets.

@IslamAzab
Created August 4, 2014 16:01
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 IslamAzab/6e626065aae7acb09e69 to your computer and use it in GitHub Desktop.
Save IslamAzab/6e626065aae7acb09e69 to your computer and use it in GitHub Desktop.
Installing Redis
Prerequisites:
sudo apt-get install build-essential
sudo apt-get install tcl8.5
To install redis:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
make test (optional to check that make was successful)
sudo make install (install redis system wide)
To make redis run as background deamon:
cd redis-stable/utils
sudo ./install_server.sh
To start and stop redis:
sudo service redis_6379 start
sudo service redis_6379 stop
You can access redis database using the following command
redis-cli
You can find a detailed version https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis. Also don't forget redis quickstart guide http://redis.io/topics/quickstart .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment