Redis 4 systemd Sentinel 配置文件不可写

标签 redis stackexchange.redis redis-cluster

我已经安装了最新的 Redis 4(4.0.14) 版本。我正在尝试设置一个 3 节点的 Redis sentinel。当我尝试运行时,我更改了哨兵配置文件

/usr/bin/redis-sentinel /etc/redis-sentinel.conf

我可以启动 redis sentinel 但是如果我开始使用 systemd,

systemctl start redis-sentinel

我得到了,

2331:X 03 Jun 23:30:31.744 # Sentinel 配置文件/etc/redis-sentinel.conf 不可写:权限被拒绝。退出... .

为什么使用systemd会出现上述错误?我有默认的 systemd redis-sentinel 配置。

最佳答案

检查/etc/redis-sentinel.conf 的文件权限

检查 SELINUX sestatus,如果它正在运行,则尝试禁用它或添加 selinux 异常(exception)。

关于Redis 4 systemd Sentinel 配置文件不可写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56435762/

相关文章:

redis - Redis server_load 统计数据的计量单位是什么?

redis - 在Redis交互模式下以间隔重复命令

redis - 访问 Redis 数据库的有效方法

caching - 在c#异步中使用Redis缓存后CPU使用率高

c# - 在 Redis 中存储 Dictionary of Dictionary (StackExchange.Redis)

redis - Redis中的 "AUTH"是什么以及如何使用它?

PHP 在 proc_open() 之后没有立即返回

redis - 内存分布式缓存中的数据分区和数据持久化

node.js - Redis 集群 : will hgetall search all nodes in cluster for key?

redis - 重新启动后不会出现Coldfusion 2016 API Manager