我已经为 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 (一切正常),但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。
我哪里做错了?