背景:windows环境下cmd命令行执行安装MongoDB配置文件时提示
Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choices are 'on|off', 'yes|no', '1|0' and 'true|false'
try 'mongod --help' for more information
报错原因:乱码导致,将MongoDB的配置文件mongo.conf里每行后面的空格去掉。然后再次执行:mongod.exe ‐‐config “MongoDB配置文件路径” ‐‐install