服务安装
Mongo数据库安装成Windows服务
参数查看
DOS下进入mongod文件所在的目录,然后键入mongod -h有详细的参数。
参数
mongod --install --logpath --dbpath
例如
mongod --install --logpath=E:\mongo\log\log.log --dbpath=E:\mongo\db
或者
mongod --install --logpath E:\mongo\log\log.log --dbpath E:\mongo\db
配置文件
mongod --install -f
mongod --install -f E:\mongo\config.conf
#config dbpath=\mongo\db logpath=\mongo\log\log.log logappend=true port=27017 #rest=true directoryperdb=true noprealloc=true bind_ip=192.168.0.226,127.0.0.1