update readme

This commit is contained in:
zhh
2018-12-13 14:09:02 +08:00
parent cccd6a703f
commit 33e4422717
2 changed files with 16 additions and 3 deletions

View File

@@ -36,8 +36,7 @@
storage:
dbPath: c:\mongodb\data\db
```
- 安装为服务C:\mongodb\bin\mongod.exe --config "C:\mongodb\mongod.cfg" --install
- 安装为服务F:\developer\IDE\idea\mongodb-bundle\mongodb-server\bin\mongod.exe --config "F:\developer\IDE\idea\mongodb-bundle\mongodb-server\mongod.cfg" --install
- 安装为服务(运行命令需要用管理员权限)C:\mongodb\bin\mongod.exe --config "C:\mongodb\mongod.cfg" --install
- 启动服务net start MongoDB
- 关闭服务net stop MongoDB
- 移除服务C:\mongodb\bin\mongod.exe --remove