Redis is an open-source, in memory-data structure store and it can be used as a database cache and message broker. It’s a distributed in-memory key-value database with optional durability. It provides data structures such as strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.

This blog helps you to Install Redis on Ubuntu 18.04 version and if you are looking for installing and managing Redis for your application or server, please contact our expert team to get it done. You can also refer our high-performance server management plan to get this done under monthly server management.

Installation of Redis on Ubuntu 18.04

sudo apt update
sudo apt install redis-server

Configure Redis Server on Redis configuration file

cd /etc/redis/
vim redis.conf
####Change the bind ip address with
####Change the "supervised" option to systemd because we are using ubuntu server and systemd.
supervised systemd

Start and enable Redis server

systemctl restart redis-server
systemctl enable redis-server

Check the status of Redis server, Redis server will listen on on port 6379.

systemctl status redis-server
netstat -plntu

Check Redis by “redis-cli” command

redis-cli ping
redis-cli ping "Hello Redis"

If the “redis-cli ping” command shows output as “PONG” and the “redis-cli ping “Hello Redis” shows output as “Hello Redis” then we can confirm that the Redis server is installed correctly.

Redis needs to be configured and hardened properly to secure the environment and to make it worth for your application.

Do you want our team to install and configure Redis property for your website?