How To Install Redis on Ubuntu 15.10

Redis is a key-value data storage solution, often referred as to a “NoSQL” database. It can achieve very high read/write speeds because it is an in-memory but persistent on-disk database. In this guide, you will learn how to install Redis on Ubuntu.

Getting started

  1. Update the apt-get packages: sudo apt-get update
  2. Download a compiler which will help us install Redis: sudo apt-get install build-essential

Installing Redis

  1. Download the latest stable release of Redis: wget
  2. Untar it: tar xzf redis-stable.tar.gz
  3. Go into the directory: cd redis-stable
  4. Run the “make” command: make
  5. Run the recommended test: make test
  6. Finally, finish by making the install: make install

Post install procedure

Redis comes with a script that enables it to run in the background.

  1. Navigate into the “utils” folder: cd utils
  2. Run the script: sudo ./

When the script is launched, it prompts you to choose running options. For the default, just press the enter key. Once the script finishes, the Redis server will be running in the background.


Congratulations! You have successfully setup a working Redis server instance.

Here are some useful commands:

  • Start the Redis server: sudo service redis_6379 start

    6379 is the port and will depend on your port option during install.

  • Stop the Redis server: sudo service redis_6379 stop

    6379 is the port and will depend on your port option during install.

  • Access the Redis CLI: redis-cli

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.