Article

Table of Contents
Theme:
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles.

How To Install Redis on Ubuntu 15.10

Last Updated: Sat, Nov 21, 2015
Databases Linux Guides Redis Ubuntu
Archived content

This article is outdated and may not work correctly for current operating systems or software.

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 http://download.redis.io/releases/redis-stable.tar.gz

  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 ./install_server.sh

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.

Conclusion

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 $600 by adding new articles.