Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 871 Bytes

04-redis.MD

File metadata and controls

38 lines (26 loc) · 871 Bytes

Redis

Redis is used for in-memory data storage(Caching) and allows users to access the data of database over API.

Redis is offering the repo file as a rpm. Lets install it

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y

Enable Redis 6.2 from package streams.

dnf module enable redis:remi-6.2 -y

Install Redis

dnf install redis -y

Usually Redis opens the port only to localhost(127.0.0.1), meaning this service can be accessed by the application that is hosted on this server only. However, we need to access this service to be accessed by another server, So we need to change the config accordingly.

Update listen address from 127.0.0.1 to 0.0.0.0 in /etc/redis.conf & /etc/redis/redis.conf

vim /etc/redis.conf

Start & Enable Redis Service

systemctl enable redis
systemctl start redis