Redis Installation on Ubuntu 12.04LTS
Step by Step installation Procedure:
Step 1: Change to all installations directory
cd /usr/local/hadoop
Step 2: Start off by updating all of the apt-get packages
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install tcl8.5
Step 2: Download Presto tarball file
wget http://redis.googlecode.com/files/redis-2.4.16.tar.gz
Step 3: Unpack the tarball file
sudo tar –zxvf redis-2.4.16.tar.gz
Step 4: Proceed to with the make, make test and install command:
sudo make
sudo make test
sudo make install
Step 5: Once the program has been installed, Redis comes with a built in script that sets up Redis to run as a background daemon. To access the script move into the utils directory
cd utils
Step 6: From there, run the Ubuntu/Debian install script
sudo ./install_server.sh
Step 7: You can start and stop Redis with these commands
sudo service redis_6379 start
sudo service redis_6379 stop
Step 8: You can then access the Redis database by typing the following command
redis-cli
redis 127.0.0.1:6379>
Step 9: Check if Redis is working
$ redis-cli ping
PONG
Step 10: To set Redis to automatically start at boot, run
sudo update-rc.d redis_6379 defaults
Written by Vidyasagar Gudapati
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Redis installation
Authors
Related Tags
#redis installation
#redis on ubuntu
#install redis on ubuntu
#redis nosql installation
#redis nosql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#