я создал этот конфиг для Redis [/etc/redis/map.conf]:redis.conf включает в себя: «Bad директивы или неверное число аргументов»
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
Моей проблема: я могу запустить Redis-сервер с storage.conf (и все работает отлично), но 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.
Где я ошибся?
Я бы попытался использовать od или hexdump, чтобы проверить, скрыты ли некоторые непечатаемые символы в строке include. –