Thursday, February 17, 2022

How To Enable / Configure Redis To Accept Remote Connections

 in This Tutorial you will Learn "How To Configure Redis To Accept Remote Connections On Rocky Linux 8

Redis is a popular and open-source in-memory key-value or data structure store that is used as a distributed database, message broker, and cache. Redis supports data structures, such as Lists, Strings, and Sets, and it is widely recognized due to its broad support, performance, availability, and flexibility.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y
dnf install redis -y
systemctl start redis ; systemctl enable redis
gedit /etc/redis.conf &>/dev/null
bind
protected-mode no
# requirepass StrongPassword  
systemctl restart redis ; systemctl status redis
redis-cli

firewall-cmd --permanent --new-zone=redis
firewall-cmd --permanent --zone=redis --add-port=6379/tcp
firewall-cmd --permanent --zone=redis --add-source=192.168.1.80
firewall-cmd --reload
_________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y
dnf install redis -y ; systemctl start redis ; systemctl enable redis
redis-cli -h 192.168.1.60 -p 6379
AUTH
_________________________________________________________________________________________



No comments:

Post a Comment