MongoDB解压版安装 Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choic

一、下载解压版MongoDb

    官网下载 : https://www.mongodb.com/download-center/community

二、 文件操作

    新建文件夹data、logs;新建文件mongo.config

    MongoDB解压版安装
Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choic

  ** 配置mongo.config文件

***************************START****************************************

#数据库路径
dbpath=D:mongodb-win32-x86_64-2008plus-ssl-4.0.10data

#日志输出文件路径
logpath=D:mongodb-win32-x86_64-2008plus-ssl-4.0.10logsmongo.log

#错误日志采用追加模式
logappend=true

#启用日志文件,默认启用
journal=true

#这个选项可以过滤掉一些无用的日志信息,若需要调试使用请设置为false
quiet=true

#端口号 默认为27017
port=27017

***************************END*****************************

***  配置后面不能有空格,否则初始化启动失败

三、初始化配置,并加入到服务列表

初始化配置

**  cmd命令执行 mongod --dbpath D:mongodb-win32-x86_64-2008plus-ssl-4.0.10data

访问 http://127.0.0.1:27017/    出现下面界面,安装成功

MongoDB解压版安装
Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choic

加入到服务列表

**  管理员运行cmd  (必须是管理员启动cmd.exe,否则服务安装失败)

执行命令 mongod --config "D:mongodb-win32-x86_64-2008plus-ssl-4.0.10mongo.config" --install --serviceName "MongoDB"

 MongoDB解压版安装
Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choic

四、安装完成