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

MongoDB以Windows Service运行

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:38:25
Original
959 people have browsed it

以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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
mongodb start
From 1970-01-01 08:00:00
0
0
0
linux - ubuntu14 error installing mongodb
From 1970-01-01 08:00:00
0
0
0
Use of symfony2 mongodb
From 1970-01-01 08:00:00
0
0
0
mongodb _id rename
From 1970-01-01 08:00:00
0
0
0
Parameter understanding of mongodb
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template