How to install Redis on Ubuntu
Last updated
sudo apt upgrade -ysudo apt install redis-server -ysudo dnf install redis -ysudo yum install epel-release -y
sudo yum install redis -ysudo systemctl start redis
sudo systemctl enable redis
sudo systemctl status redisredis-cli
pingPONGsudo cp /etc/redis/redis.conf /etc/redis/redis.conf.backup
sudo nano /etc/redis/redis.confbind 127.0.0.1 ::1
requirepass YourStrongPassword123!
maxmemory 256mb
maxmemory-policy allkeys-lrusudo systemctl restart redis