Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, HyperLogLogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
You can also view our guide on Installing Redis on Ubuntu
In this guide, we will explain how to install Redis on a Debian 9 Server.
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.
Updating System Packages
It is recommended that you update the system to the latest packages before beginning any major installations. Issue the command below:
sudo apt update -y sudo apt upgrade -y
Step 1: Install Redis from APT Repo
Redis package is included in the default Debian 9 repositories, therefore, issue the command below to install Redis:
sudo apt install redis-server
Step 2: Check Redis Status
After successfully installing the Redis package, it will start automatically. You can issue the command below to check the status of the Redis service:
sudo systemctl status redis-server
Step 3: Verify the Installation
The next step is to verify that our installation was done successfully with the command below:
- Your prompt will change to
- Run the command
ping, which should return a
PONGas shown below