<?php /** * RockMongo configuration * * Defining default options and server configuration * @package rockmongo */ $MONGO = array(); $MONGO["features"]["log_query"] = "off";//log queries $MONGO["features"]["theme"] = "default";//theme $MONGO["features"]["plugins"] = "on";//plugins $i = 0; /** * Configuration of MongoDB servers * * @see more details at http://code.google.com/p/rock-php/wiki/configuration */ $MONGO["servers"][$i]["mongo_name"] = "virtual0";//mongo server name $MONGO["servers"][$i]["mongo_host"] = "127.0.0.1";//mongo host $MONGO["servers"][$i]["mongo_port"] = "27017";//mongo port $MONGO["servers"][$i]["mongo_timeout"] = 30;//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"] = true;//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;//if hide the system collections $i ++; /** * mini configuration for another mongo server */ /** $MONGO["servers"][$i]["mongo_name"] = "Localhost2"; $MONGO["servers"][$i]["mongo_host"] = "127.0.0.1"; $MONGO["servers"][$i]["mongo_port"] = "27018"; $MONGO["servers"][$i]["control_users"]["admin"] = "admin"; $i ++; **/ ?>
注意,登录的用户名与密码是
$MONGO["servers"][$i]["control_users"]["admin-name"] = "admin-password";
admin-name
是登录名
admin-password
是密码
很容易这里搞错.
RockMongo
在线管理Mongodb
还是很方便的.
stat -c "%a %n" file , 755, 644
ModuleNotFoundError: No module named 'MySQLdb', ...
Ubuntu18.04下使用pyenv安装python报错:BUILD FAILED (Ubun ...
dell提供了工具远程查看服务器硬件状态,可以修改硬件的参数,可以远程连接过去直接修改,就不需要 ...
启动报undefined symbol: EVP_CIPHER_CTX_cleanup错误。op ...
ubuntu开启crontab日志记录及解决No MTA installed, discardi ...
暂时还没有评论,第一个来评论吧!