1:解压mongodb压缩包
2:解压的目录里新建 data、logs/mongodb.log、conf/mongod.conf
3: conf/mongod.conf:
dbpath = D:\DevTools\DataSource\mongodb-4.4.6\data
logpath = D:\DevTools\DataSource\mongodb-4.4.6\logs\mongodb.log
logappend = true
port = 27018
auth = true
dbpath = D:\DevTools\DataSource\mongodb-4.4.6\data
logpath = D:\DevTools\DataSource\mongodb-4.4.6\logs\mongodb.log
logappend = true
port = 27018
auth = true
本文标题:MongoDB
本文链接:https://www.haomeiwen.com/subject/tiqcvltx.html
网友评论