安装 MongoDB 时,windows 没有自动的注册服务,通过 cmd 命令
mongod.exe ‐‐config "d:\MongoDB\Server\3.4\mongo.conf" ‐‐install
注册时出错
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'
将敲配置文件时,习惯性敲击上的空格删除。重新注册,就好了。