安装教程地址:https://blog.csdn.net/fengtingyan/article/details/88371232
原文地址:https://blog.csdn.net/qq_20084101/article/details/82261195#solution
、
解决办法:
划重点!!
mongod 命令后的 --config 是指定运行 mongod 时的配置文件,于是在 bin 文件夹下找到 mongod.cfg 文件,打开:
# mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # Where and how to store data. storage: dbPath: E:MongoDBdata journal: enabled: true # engine: # mmapv1: # wiredTiger: # where to write logging data. systemLog: destination: file logAppend: true path: E:MongoDBlogmongod.log # network interfaces net: port: 27017 bindIp: 127.0.0.1 #processManagement: #security: #operationProfiling: #replication: #sharding: ## Enterprise-Only Options: #auditLog: #snmp: mp:
把最后一行的 mp: 删掉后,重新启动服务,成功了!!!