Skip to content

Instantly share code, notes, and snippets.

@milon
Created May 10, 2015 03:51
Show Gist options
  • Save milon/5d8ac6153da328678ed4 to your computer and use it in GitHub Desktop.
Save milon/5d8ac6153da328678ed4 to your computer and use it in GitHub Desktop.
Install Redis on Ubuntu

Install Redis on Ubuntu server

Install dependency to compile redis

sudo apt-get install build-essential
sudo apt-get install tcl8.5

Download and install

Download latest version via wget

wget http://download.redis.io/releases/redis-3.0.1.tar.gz

Untar the downloaded package

tar xzf redis-3.0.1.tar.gz

Change directory downloaded folder

cd redis-3.0.1

Then compile and install

make
make test
sudo make install

Install redis server globally

cd utils
sudo ./install_server.sh

Setup redis to automatically running on boot

sudo update-rc.d redis_6379 defaults

Test installation

Run on console

redis-cli

you will see redis console like this

127.0.0.1:6379>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment