MongoDB

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


4:mongod --config D:\DevTools\DataSource\mongodb-4.4.6\conf\mongod.conf --install --serviceName "MongoDB"

5: net start MongoDB

你可能感兴趣的:(MongoDB)