Redis stands for Remote Dictionary Server. It’s a NoSQL in-memory database having similar features like Cassandra, CouchDB, and MongoDB. It is an open-source data structure server which supports various data structures like strings, hashes, lists, sets, sorted sets, bitmaps, hyperlogs and geospatial indexes with radius queries.
Today we will learn how to install Redis on Ubuntu 18.04 by following some easy steps. Let’s assume your Ubuntu 18.04 LTS installation has a non-root user with sudo privileges.
Step 1: Upgrade Server Softwares
$ sudo apt -get update $ sudo apt -get upgrade -y
Step 2: Install Redis Server
$ sudo apt-get install redis-server
Step 3: Test your installation
Once installation is complete, we should be able to go into redis console and try some commands as follows:
$ redis-cli 127.0.0.1:6379>
In the above example, 127.0.0.1 is your IP address of your local system and 6379 is a port on which redis process is running. Let’s try to use PING command and see the magic 🙂
$ redis-cli 127.0.0.1:6379> PING PONG
If you face any issue in the above process or need any consultation on REDIS cluster management, do let me know via the comments section.