【MongoDB】 安装为windows services

参考  http://stackoverflow.com/questions/2404742/how-to-install-mongodb-on-windows

# mongodb.conf

# data lives here
dbpath=D:Program FilesMongoDBdb

# where to log
logpath=D:Program FilesMongoDBlogmongodb.log
logappend=true

# only run on localhost for development
bind_ip = 127.0.0.1                                                             

port = 27017
rest = true

mongod.exe --install --config "D:Program FilesMongoDBServer3.0inmongodb.conf" --logpath "D:Program FilesMongoDBlogmongodb.log"

原文地址:https://www.cnblogs.com/viewcozy/p/4683293.html