2016年5月28日 星期六

MongoDB學習02

wmic os get caption
查看WIN OS的版本
wmic os get osarchitecture
查看WIN的位元版本

>net stop MongoDB
(or >mongod.exe --remove)
MongoDB 服務正在停止
MongoDB 服務已經成功停止
>echo logpath=d:\data\log\mongod.log > d:\mongodb\mongod.cfg
>mongod --config d:\mongodb\mongod.cfg --install
>net start MongoDB
MongoDB 服務已經啟動成功

sc.exe create MongoDB binPath= "C:\mongodb\bin\mongod.exe --service --config=\"C:\mongodb\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"

sc.exe delete MongoDB

沒有留言:

張貼留言