Ubuntu 20.04 – Redis Installation
Step1 – Ubuntu Server Update And Upgrade
sudo apt update
sudo apt upgrade --- Gerek görürseniz upgrade edip , sunucuyu Reboot Edin.
reboot
Step2 – Redis Installation
sudo apt install redis-server -y
Step3 – Redis Service Check
sudo systemctl status redis
sudo systemctl enable redis
sudo systemctl start redis
sudo systemctl restart redis
sudo systemctl status redis
Step4- Redis Configuration
Gerek görürseniz Konfigürasyon dosyasını güncelleyerek , Redis’i tekrardan başlatmalısınız.
/etc/redis/redis.conf <<
bind 0.0.0.0requirepass GüçlüBirParola
sudo systemctl restart redis
sudo systemctl status redis
bind 0.0.0.0 <<< ---Yerel erişim dışına çıkmayacaksanız, bind 127.0.0.1 ::1
requirepass GüçlüBirParola!!x <<< --- Güvenli bir Redis için , Güçlü bir parola ekleyiniz.
Step5 – Redis Test Connection
redis-cli
127.0.0.1:6379> ping
- PONG
Redis Clienttan ping atıp , PONG cevabını görüyorsak , Test connection tamamdır.
