gpt4 book ai didi

configuration - redis.conf 包括 : "Bad directive or wrong number of arguments"

转载 作者:IT王子 更新时间:2023-10-29 06:10:21 24 4
gpt4 key购买 nike

我已经为 redis [/etc/redis/map.conf] 创建了这个配置:

include /etc/redis/ideal.conf
port 11235
pidfile /var/run/redis-map.pid
logfile /var/log/redis/map.log
dbfilename map.rdb

如你所见,它包括/etc/redis/ideal.conf;这个文件确实存在,我们有读取权限。还有另一个文件,略有不同;考虑 [/etc/redis/storage.conf]:

include /etc/redis/ideal.conf

pidfile /var/run/redis-storage.pid
port 8000
bind 192.168.0.3
logfile /var/log/redis/storage.log
dbfilename dump_storage.rdb

我的问题是:我可以使用 storage.conf 启动 redis-server(并且一切正常),但是 ma​​p.conf 会导致以下错误:

Reading the configuration file, at line 1
>>> 'include /etc/redis/ideal.conf'
Bad directive or wrong number of arguments
failed

redis的版本是2.2。

我哪里出错了?

最佳答案

对不起各位。

我使用的是不同的 Redis 实例。

storage.conf 的实例由/usr/local/bin/redis-server 启动,但 ma​​p.conf 由/usr/bin/redis-server 启动;第二个坏了。

还是谢谢你。

关于configuration - redis.conf 包括 : "Bad directive or wrong number of arguments",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11121540/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com