安装mongoDB时,总是报错,启动不了

安装教程地址: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:\MongoDB\data
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# where to write logging data.
systemLog:
destination: file
logAppend: true
path: E:\MongoDB\log\mongod.log

# network interfaces
net:
port: 27017
bindIp: 127.0.0.1


#processManagement:

#security:

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:
mp:

 

把最后一行的 mp: 删掉后,重新启动服务,成功了!!!

posted @ 2019-11-27 17:32  LIULIULIU666  阅读(283)  评论(0编辑  收藏  举报