这个在网上查了一下,是由于自己未开启mongodb 服务导致。
自己在dos环境下创建mongodb自启动服务:
C:\Windows\system32>sc create MONGOSVR binpath= "C:\Program Files\MongoDB 2.6 St
andard\bin\mongod --dbpath f:/data" type= share start= auto displayname= "MONGOS
VR"
记录一下,防止以后遗忘。
这个在网上查了一下,是由于自己未开启mongodb 服务导致。
自己在dos环境下创建mongodb自启动服务:
C:\Windows\system32>sc create MONGOSVR binpath= "C:\Program Files\MongoDB 2.6 St
andard\bin\mongod --dbpath f:/data" type= share start= auto displayname= "MONGOS
VR"
记录一下,防止以后遗忘。