Javatpoint Logo
Javatpoint Logo

Install Redis on Ubuntu

Follow the steps given below to install Redis on Ubuntu:

First setup a non-root user using sudo and then install build and test dependencies:

Redis Installation on Ubuntu 1 Redis Installation on Ubuntu 2

To continue press Y

Redis Installation on Ubuntu 3

Install Redis Server

Use the following command to install Redis server:

Redis Installation on Ubuntu 4 Redis Installation on Ubuntu 5

Now Redis Server is installed. You can start the Redis server:


Start Redis Server

You the following command to start redis server:

Redis Installation on Ubuntu 6

Start Redis Client

Redis server is started so you can start redis client to make communication between them.

Redis Installation on Ubuntu 7

Verify if Redis is working

Execute the following command:

This will open a redis prompt.

redis 127.0.0.1:6379>

In the above prompt, 127.0.0.1 is machine's IP address and 6379 is the port on which Redis server is running.

Now type the following PING command.

It specifies that Redis is successfully installed on your system.

Redis Installation on Ubuntu 8




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA