Answer the question
In order to leave comments, you need to log in
Redis-server does not start in docker container. What is the problem?
1.
There is a docker container with redis on board
>service redis-server start
Starting redis-server: redis-server.
>service redis-server status
* redis-server is not running
In general, redis-server is not running
2
See
what's there
>redis-server
Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
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.
Added to /etc/sysctl.conf
net.core.somaxconn = 128
vm.overcommit_memory = 1
But, alas:
>sysctl -p
sysctl: setting key "net.core.somaxconn": Read-only file system
sysctl: setting key " vm.overcommit_memory": Read-only file system
3
Also added to /etc/sysctl.conf on the host system
net.core.somaxconn = 128
vm.overcommit_memory = 1
Rebooted, but still the same
>service redis-server start
Starting redis-server: redis-server.
>service redis-server status
* redis-server is not running
Exhausted the possibility of "google", decided to contact the local gurus. Thanks in advance for the replies.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question