Redis容器未运行

时间:2018-06-26 10:27:03

标签: redis laradock

正在运行的redis docker在“ docker-compose ps”中立即处于退出1状态。 当我运行“ docker-compose logs redis”时,我得到了以下日志:

redis_1                | 1:C 26 Jun 10:12:17.185 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1                | 1:C 26 Jun 10:12:17.185 # Redis version=4.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1                | 1:C 26 Jun 10:12:17.185 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1                | 1:M 26 Jun 10:12:17.187 * Running mode=standalone, port=6379.
redis_1                | 1:M 26 Jun 10:12:17.187 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1                | 1:M 26 Jun 10:12:17.187 # Server initialized
redis_1                | 1:M 26 Jun 10:12:17.187 # 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.
redis_1                | 1:M 26 Jun 10:12:17.187 # 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.
redis_1                | 1:M 26 Jun 10:12:17.189 # Short read or OOM loading DB. Unrecoverable error, aborting now.
redis_1                | 1:M 26 Jun 10:12:17.189 # Internal error in RDB reading function at rdb.c:1668 -> Unexpected EOF reading RDB file
redis_1                | [offset 0] Checking RDB file dump.rdb
redis_1                | [offset 26] AUX FIELD redis-ver = '4.0.8'
redis_1                | [offset 40] AUX FIELD redis-bits = '64'
redis_1                | [offset 52] AUX FIELD ctime = '1527606776'
redis_1                | [offset 67] AUX FIELD used-mem = '3628856'
redis_1                | [offset 83] AUX FIELD aof-preamble = '0'
redis_1                | [offset 85] Selecting DB ID 0
redis_1                | --- RDB ERROR DETECTED ---
redis_1                | [offset 170519] Invalid LZF compressed string
redis_1                | [additional info] While doing: read-object-value
redis_1                | [additional info] Reading key '[b07ed66f548e35bb51d40fd4ab8546c2][13]'
redis_1                | [additional info] Reading type 0 (string)
redis_1                | [info] 106 keys read
redis_1                | [info] 0 expires
redis_1                | [info] 0 already expired

0 个答案:

没有答案