Thursday, July 10, 2025

How to install Redis server on Oracle Linux Server 9

 Redis is an open-source (BSD licensed), in-memory data structure store. It can be used as a database, cache and message broker. It supports different kinds of abstract data structures such as Strings, Hashes, Lists, Sets, sorted sets, hyperlogs, bitmaps, streams, and spatial indexes.
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y

dnf install redis -y
systemctl start redis ; systemctl enable redis
redis-server -v
redis-cli
ping

Allow remote connections:-
nano /etc/redis/redis.conf
# bind 127.0.0.1 ::1
protected-mode no
systemctl restart redis
firewall-cmd --zone=public --permanent --add-service=redis ; firewall-cmd --reload
redis-cli -h REDISHOSTNAME_OR_IPADDRESS
redis-cli -h 192.168.1.50
INFO
__________________________________________________________________________________________________________________________________



No comments:

Post a Comment