我在Redis 2.8中遇到以下错误:
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 :(得分:-1)
检查Redis配置文件中的第103行。您应该在该行中找到日志文件配置。然后,确保运行redis进程/服务的用户对该文件/文件夹具有适当的权限(读取和写入/修改)。