2016-11-08 61 views
1

我有巨大的問題通過rockmongo連接到圖集(mongodb)。mongodb地圖集 - rockmongo

這是我的配置。

$MONGO["servers"][$i]["mongo_options"] = array("replicaSet" => "LuxeMassage-shard-0"); 
$MONGO["servers"][$i]["mongo_name"] = "LuxeMassage Cluster";//mongo server name 
$MONGO["servers"][$i]["mongo_host"] = "mongodb://luxemassage-shard-00-00-0kahc.mongodb.net:27017,luxemassage-shard-00-01-0kahc.mongodb.net:27017,luxemassage-shard-00-02-0kahc.mongodb.net:27017/admin?replicaSet=LuxeMassage-shard-0";//mongo host 
$MONGO["servers"][$i]["mongo_port"] = "27017";//mongo port 
$MONGO["servers"][$i]["mongo_timeout"] = 0;//mongo connection timeout 
//$MONGO["servers"][$i]["mongo_db"] = "MONGO_DATABASE";//default mongo db to connect, works only if mongo_auth=false 
//$MONGO["servers"][$i]["mongo_user"] = "MONGO_USERNAME";//mongo authentication user name, works only if mongo_auth=false 
//$MONGO["servers"][$i]["mongo_pass"] = "MONGO_PASSWORD";//mongo authentication password, works only if mongo_auth=false 
$MONGO["servers"][$i]["mongo_auth"] = true;//enable mongo authentication? 

$MONGO["servers"][$i]["control_auth"] = false;//enable control users, works only if mongo_auth=false 
//$MONGO["servers"][$i]["control_users"]["admin"] = "admin";//one of control users ["USERNAME"]=PASSWORD, works only if mongo_auth=false 

$MONGO["servers"][$i]["ui_only_dbs"] = "";//databases to display 
$MONGO["servers"][$i]["ui_hide_dbs"] = "";//databases to hide 
$MONGO["servers"][$i]["ui_hide_collections"] = "";//collections to hide 
$MONGO["servers"][$i]["ui_hide_system_collections"] = false;//whether hide the system collections 

我已經允許IP地址白名單,所以我可以通過SSH終端連接。所以連接圖譜的作品,但是當我通過rockmongoo嘗試MongoDB的圖譜它bruings錯誤

Unable to connect MongoDB, please check your configurations. MongoDB said:No candidate servers found. 

回答

1

的根本原因是缺乏對RockMongo客戶端SSL支持。 Atlas推薦使用另一個Web客戶端。

+0

如何做到這一點,因爲mongodb建議我不再使用rockmongo,因爲它不支持ssl – RussellHarrower

+0

我看到他們還沒有發佈更新。看起來這仍然是不可能的。我也更正了上述答案。 –