Configuration redis.conf包括:";指令错误或参数数量错误”;

Configuration redis.conf包括:";指令错误或参数数量错误”;,configuration,redis,Configuration,Redis,我已经为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/ReiS/Sturial.CO

我已经为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/ReiS/Sturial.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服务器(一切正常),但是map.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服务器启动,而map.conf由/usr/bin/redis服务器启动;第二个坏了


无论如何,谢谢。

我会尝试使用od或hexdump检查include行中是否隐藏了一些不可打印的字符。非常感谢!我为这件事大发雷霆。在redis.conf
loadmodule/usr/src/RediSearch/RediSearch.so