How to Install Redis On Ubuntu 16.04 LTS

In this post we will see How To Install Redis On Ubuntu Linux

To install Redis, run the following commands:

$ mkdir redis && cd redis
$ curl -O
$ tar xzvf redis-stable.tar.gz
$ cd redis-stable
$ make
$ make test
$ sudo make install

Now to start Redis server, you can run this command.

$ redis-server

To Test if Redis server is running run this command.

$ redis-cli ping

If it replies “PONG”, then it’s good to go!

To set a value run the following commands

$ redis-cli
redis> set foo bar
redis> get foo

Video Instructions

Partner Sites

Be the first to comment

Leave a Reply

Your email address will not be published.