如何设置MongoDB以便它可以作为Windows服务运行?
我最近用Homebrew安装了mongodb-2.6.0 .成功安装后,我尝试使用该mongo命令进行连接.我收到以下错误,不允许我连接:
Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Run Code Online (Sandbox Code Playgroud) 我是Mongo的新人.我正在mongod描述这里在Mac OS X.我mongod从命令行运行两个进程.如果我需要停止mongod进程,我只是执行kill <pid of mongod>.这是推荐的停止方式mongod吗?