Główny plik konfiguracyjny
# nano /etc/redis/redis.conf bind 127.0.0.1 - tylko localhost # By default, if no "bind" configuration directive is specified, Redis listens # for connections from all the network interfaces available on the server. # It is possible to listen to just one or multiple selected interfaces using # the "bind" configuration directive, followed by one or more IP addresses.
Logi
# cd /var/log/redis # tail -f redis-server.log
dir /var/lib/redis supervised no - zmienić to ust. domyślne
supervised systemd - kontrola w debianie
# systemctl restart redis # tail -f /var/log/redis/redis-server.log # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. # Server started, Redis version 3.2.6 # 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. # 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_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 12626:M 17 Sep 08:35:08.156 * DB loaded from disk: 0.000 seconds 12626:M 17 Sep 08:35:08.156 * The server is now ready to accept connections on port 6379
# systemctl status redis
# redis-cli > PING PONG