sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install -y tcl8.5
wget http://download.redis.io/releases/redis-stable.tar.gz
tar xzf redis-stable.tar.gz
tar xzf redis-stable.tar.gz
make
make test
sudo make install
Once the program has been installed, use Redis' script that sets up Redis to run as backgroud daemon.
cd utils
sudo ./install_server.sh
Note: press enter to approve default options. The server will be running on port 6379.
Set Redis to automatically start at boot
sudo update-rc.d redis_6379 defaults
sudo service redis_6379 start
sudo service redis_6379 stop
redis-cli