2016-03-08 886 views
0

我得到的Redis 2.8以下错误:无法启动redis的

FATAL CONFIG FILE ERROR 
redis-server[31954]: Reading the configuration file, at line 103 
redis-server[31954]: 'logfile /var/log/redis/redis.log' 
redis-server[31954]: Can't open the log file: Permission denied 
systemd[1]: redis.service: main process exited, code=exited,  status=1/FAILURE 
redis-shutdown[31956]: Could not connect to Redis at 127.0.0.1:6379: Connection refused 
systemd[1]: redis.service: con`enter code here`trol process exited, code=exited status=1 
systemd[1]: Unit redis.service entered failed state. 
systemd[1]: redis.service failed. 

是什么原因造成的?

+0

你在Redis上运行什么用户?该用户可以访问配置文件吗? –

回答

-1

从Redis配置文件中检查第103行。您应该在该行中找到日志文件配置。然后,确保运行redis进程/服务的用户对该文件/文件夹具有适当的权限(读取和写入/修改)。