Berkehan BENDİVAR


DevOps Solution Architecture
Kedi ve Çay aşığı 🖤


CentOS 7 Plesk Panel Redis Kurulumu

Kendi sunucumda kurulumunu denediğim ve kullanmaya başladığım redisin kurulumunu sizlere anlatmak istedim. Kendim bir kaç makaleye baktım ama net anlatım bulamadım.

Öncelikle redis için gerekli araçları kuralım;

yum group install "Development Tools" -y
veya
yum groupinstall "Development Tools" -y
veya
yum install gcc-c++ pcre-devel zlib-devel make unzip -y

Gerekli araçlarımız yüklendikten sonra aşağıdaki komutları çalıştırıyoruz.

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
make install

Redis Server compile edildikten sonra test edelim.

redis-server &lsof -i tcp:6379

Örnek Çıktı 1.komut için

10871:M 13 Sep 14:08:33.756 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxcon                                            n is set to the lower value of 128.
10871:M 13 Sep 14:08:33.756 # Server initialized
10871:M 13 Sep 14:08:33.756 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_ memory=1' for this to take effect.
10871:M 13 Sep 14:08:33.756 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_huge page/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restart ed after THP is disabled.
10871:M 13 Sep 14:08:33.756 * Ready to accept connections

2.Komut için

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 27433 root 4u IPv6 223599858 0t0 TCP *:6379 (LISTEN)
redis-ser 27433 root 5u IPv4 223599859 0t0 TCP *:6379 (LISTEN)redis-cli ping
PONG

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir