database Rock Mongo mongodb 配置设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5089947/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Rock Mongo mongodb config settings
提问by Dty
I have installed RockMongohttp://code.google.com/p/rock-php/to manage my mongoDBdatabase. This is installed in a subdirectory of my site http://mongo.example.com. The default config settings are as follows:
我已经安装了RockMongo http://code.google.com/p/rock-php/来管理我的mongoDB数据库。它安装在我的站点http://mongo.example.com的子目录中。默认配置设置如下:
"host" => "192.168.1.1", // Replace your MongoDB host ip or domain name here
"port" => "27017", // MongoDB connection port
"username" => null, // MongoDB connection username
"password" => null, // MongoDB connection password
"host" => "192.168.1.1", // 此处替换你的MongoDB主机ip或域名
"port" => "27017", // MongoDB连接端口
"username" => null, // MongoDB连接用户名
"password" " => null, // MongoDB 连接密码
I'm not really sure what I should be changing these to? On log in all I get is:
我真的不确定我应该把这些改成什么?在登录时,我得到的是:
MongoDB connection exception: connecting to mongodb://192.168.1.1:27017 failed: Operation now in progress. Please check your configuration.
MongoDB 连接异常:连接到 mongodb://192.168.1.1:27017 失败:操作正在进行中。请检查您的配置。
采纳答案by Dty
I got it working:
我让它工作:
- Reinstalled mongodb properly
- Cleared browser cache
- Restarted server
- Set host to 'localhost'
- 正确重新安装mongodb
- 清除浏览器缓存
- 重启服务器
- 将主机设置为“本地主机”
回答by Dty
回答by abhishek shringi
Try to set below configuration in config.php file
尝试在 config.php 文件中设置以下配置
$MONGO["servers"][$i]["mongo_auth"] = false;
$MONGO["servers"][$i]["control_auth"] = false;