Home >Database >Mysql Tutorial > MongoDB以Windows Service运行

MongoDB以Windows Service运行

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:38:25961browse

以Administrator身份打开CMD并输入以下命令 cd D:\Developer\MongoDB\mongodb-win32-x86_64-2.4.6\bin D: mongod --logpath D:\Developer\MongoDB\logs\MongoDB.log --logappend --dbpath D:\Developer\MongoDB\data --directoryperdb --serviceName MongoDB

以Administrator身份打开CMD并输入以下命令

cd D:\Developer\MongoDB\mongodb-win32-x86_64-2.4.6\bin
D:
mongod --logpath D:\Developer\MongoDB\logs\MongoDB.log --logappend --dbpath D:\Developer\MongoDB\data --directoryperdb --serviceName MongoDB --install

启动 MongoDB服务:net start MongoDB
停止 MongoDB服务:net stop MongoDB
删除 MongoDB服务:sc delete MongoDB

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn