How to Install Redis on Fedora 36/35/34/33/32

Welcome to our tutorial on how to Install Redis on Fedora 36/35/34/33/32. Redis is an open-source in-memory data store with optional persistent writes to disk. You can use Redis as a message broker, database or for caching. It supports strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and other data structures.

For Ubuntu:

Follow the steps below to install Redis on Fedora36/35/34/33/32. You can choose to do a clustered setup or a single instance installation. This installation is for a single instance but I’ll cover Redis cluster setup in my next article.

Start the installation by ensuring your system is up to date.

sudo dnf -y update

Once your system is updated, install Redis on Fedora by running the command:

sudo dnf -y install redis

Once the package is installed, start and enable Redis service to start on boot

sudo systemctl enable --now redis

We will consider few Redis standard configurations

By default, Redis service listens on Allow the service to listen on all network interfaces if you need remote clients to connect to it.

Open the file /etc/redis.conf with your favorite text editor

sudo vim /etc/redis.conf

Then change line 66 bind to below:


Configure Redis Authentication for clients to require AUTH before processing any other commands.



requirepass oobaiY8

Set persistence mode by changing the appendonlyvalue to yes

appendonly yes

appendfilename "appendonly.aof"

Restart redis service after making the changes

sudo systemctl restart redis

If you have an active firewalld service, allow port 6379

sudo firewall-cmd --add-port=6379/tcp --permanenent

sudo firewall-cmd --reload

Check redis service status:

$ sudo systemctl status redis

● redis.service - Redis persistent key-value database

Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)

Drop-In: /etc/systemd/system/redis.service.d


Active: active (running) since Mon 2019-05-06 22:10:56 EAT; 12s ago

Main PID: 4744 (redis-server)

Tasks: 4 (limit: 2323)

Memory: 1.6M

CGroup: /system.slice/redis.service

└─4744 /usr/bin/redis-server

May 06 22:10:56 localhost.localdomain systemd[1]: Starting Redis persistent key-value database...

May 06 22:10:56 localhost.localdomain systemd[1]: Started Redis persistent key-value database.

Also verify the listen address:

$ sudo ss -tunelp | grep 6379

tcp LISTEN 0 128 *:6379 *:* users:(("redis-server",pid=28163,fd=4)) uid:995 ino:305

Confirm that you can connect to redis locally:

$ redis-cli>

Test authenticate:> AUTH 


You should receive OK in the output. If you input a wrong password, Authentication should fail:> AUTH WrongPassword 

(error) ERR invalid password

Check redis information.>  INFO

This will output a long list of data. You can limit the output by passing Section as an argument. E.g.> INFO Server

# Server






os:Linux 4.18.16-300.fc29.x86_64 x86_64















Run the benchmark with 20 parallel connections, for a total of 100k requests, against local redis to test its performance.

$ redis-benchmark -h -p 6379 -n 100000 -c 20


====== LRANGE_600 (first 600 elements) ======

10000 requests completed in 0.15 seconds

15 parallel clients

3 bytes payload

keep alive: 1

100.00% <= 0 milliseconds

67114.09 requests per second

====== MSET (10 keys) ======

10000 requests completed in 0.15 seconds

15 parallel clients

3 bytes payload

keep alive: 1

100.00% <= 0 milliseconds

66666.66 requests per second

For more options and examples, use:

$ redis-benchmark --help

This marks the end of our guide on how to install redis on Fedora.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

ComputingPost — Linux Howtos, Tutorials, Guides, News, Tips and Tricks.