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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 08:04:02  来源:igfitidea点击:

Rock Mongo mongodb config settings

mongodbdatabasenosql

提问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:

我让它工作:

  1. Reinstalled mongodb properly
  2. Cleared browser cache
  3. Restarted server
  4. Set host to 'localhost'
  1. 正确重新安装mongodb
  2. 清除浏览器缓存
  3. 重启服务器
  4. 将主机设置为“本地主机”

回答by Dty

This is what I see from the wiki

这是我从wiki看到的

Login with admin username and password, which is set "admin" and "admin" as default

使用admin用户名和密码登录,默认设置“admin”和“admin”

回答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;