BLACK FRIDAY SALE IS LIVE !!!!!

Need Assistance?

In only two hours, with an average response time of 15 minutes, our expert will have your problem sorted out.

Server Trouble?

For a single, all-inclusive fee, we guarantee the continuous reliability, safety, and blazing speed of your servers.

How to Install Redis on Ubuntu 18.04?

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 to 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 127.0.0.1
bind 127.0.0.1
####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 the Redis server, Redis server will listen on 127.0.0.1 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 the 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 your application.

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

CONTACT US NOW

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Can't get what you are looking for?

Available 24x7 for emergency support.