How To Install and Secure Redis on Rocky Linux 8-9

preview_player
Показать описание
Redis is an open-source, in-memory key-value data store which excels at caching. Redis is a non-relational database known for its flexibility, performance, scalability, and wide language support.

Redis was designed for use by trusted clients in a trusted environment, and has no robust security features of its own. Redis does, however, have a few security features like password authentication and the ability to rename or disable some commands. This tutorial provides instructions on how to install Redis and configure these security features

Commands used
sudo dnf install redis nano
sudo systemctl enable redis
sudo systemctl status redis
redis-cli ping

sudo firewall-cmd --permanent --new-zone=redis
sudo firewall-cmd --permanent --zone=redis --add-port=6379/tcp
sudo firewall-cmd --permanent --zone=redis --add-source=IP
sudo firewall-cmd --reload

sudo systemctl restart redis
redis-cli
set key1 10
auth your_redis_password
set key1 10
get key1
quit

Useful links
Рекомендации по теме
join shbcf.ru