Windows10安装MongoDB(zip)

1、下载MongoDB

https://www.mongodb.com/download-center/community

Windows10安装MongoDB(zip)_第1张图片

 

 

systemLog:
destination: file
path: "D:\MongoDB\log\mongod.log"
D:\程序缓存\MongoDB
logAppend: true
storage:
journal:
enabled: true
dbPath: "D:\MongoDB\data\"
net:
bindIp: 0.0.0.0
port: 27017
setParameter:
enableLocalhostAuthBypass: false


mongod --bind_ip 0.0.0.0 --port 27017 --logpath D:\MongoDB\log\mongod.log --logappend --dbpath D:\MongoDB\data\db --serviceName "MongoDB" --serviceDisplayName "MongoDB" --install

mongod --bind_ip 0.0.0.0 --port 27017 --logpath D:\程序缓存\MongoDB\log\mongod.log --logappend --dbpath D:\程序缓存\MongoDB\data\ --serviceName "MongoDB" --serviceDisplayName "MongoDB" --install

net start MongoDB

sc delete MongoDB

你可能感兴趣的:(Windows10安装MongoDB(zip))