nginx - 无法启动redis

标签 nginx redis centos

我在 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.

这是什么原因造成的?

最佳答案

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

关于nginx - 无法启动redis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35880292/

相关文章:

redis - redis LPUSH 和 RPUSH 哪个更快?

redis - 我可以防止 Redis 使任何 key 过期吗?

使用 eventlet 和 Redis 进行 Flask socketio 调试会产生额外的绿色线程吗?

linux - Graylog 无法解析主机名

php - 我已经安装了 FFMPEG,但在 PHP 脚本中找不到它

nginx - Nginx 是否符合开源 FIPS 标准?

linux - Nginx 为什么我的服务器在本地主机上提供正确的内容而不是 0.0.0.0

ssl - 具有多个证书的简单 ssl 终止。 Nginx/haproxy 还是其他?

amazon-web-services - 在移动设备上使用 StartSSL 的单实例 AWS HTTPS 不起作用

linux - ptpd2 无法在对等主从连接上工作