返回列表

启动mongodb启动

默认分类 2014/06/17 18:46

启动命令> mongod.exe -f C:\mongodb\mongod.conf

dbpath = C:\mongodb
logpath = C:\mongodb\mongodb.log
port = 27017
#notablescan = true
logappend = true
nohttpinterface = true

启动客户端> mongo.exe

退出mongodb退出,关闭mongodb关闭

> use admin
switched to db admin
> db.shutdownServer()
Wed Jul 24 23:41:42.497 DBClientCursor::init call() failed
server should be down...
Wed Jul 24 23:41:42.536 trying reconnect to 127.0.0.1:27017
Wed Jul 24 23:41:42.539 reconnect 127.0.0.1:27017 failed couldn't connect to server 127.0.0.1:27017
>