redis启动不了,用命令docker logs 容器 查看redis的日志信息,发现有如下错误:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 341
‘set-proc-title yes’
Bad directive or wrong number of arguments
说明:
一般有这个错的可以去查查自己redis的版本,redis.config文件最好对应上,我的是4.0.1版本,结果用的是最新的redis.config文件。我对比了下4.0.1版本的配置文件确实没有这个配置参数。
解决方案如下:
根据如下网址
http://download.redis.io/releases
下载对应的配置文件。