Redis - Environment


Advertisements


In this chapter, you will learn about the environmental setup for Redis.

Install Redis on Ubuntu

To install Redis on Ubuntu, go to the terminal and type the following commands −

$sudo apt-get update 
$sudo apt-get install redis-server

This will install Redis on your machine.

Start Redis

$redis-server

Check If Redis is Working

$redis-cli 

This will open a redis prompt.

redis 127.0.0.1:6379>

In the above prompt, 127.0.0.1 is your machine's IP address and 6379 is the port on which Redis server is running. Now type the following PING command.

redis 127.0.0.1:6379> ping 
PONG

This shows that Redis is successfully installed on your machine.

Install Redis Desktop Manager on Ubuntu

To install Redis desktop manager on Ubuntu, just download the package from https://redisdesktop.com/download

Open the downloaded package and install it.

Redis desktop manager will give you UI to manage your Redis keys and data.



Advertisements
E-Books Store