diff --git a/plugins/mongodb/index.html b/plugins/mongodb/index.html index 4738d5c99..954e0bb6a 100755 --- a/plugins/mongodb/index.html +++ b/plugins/mongodb/index.html @@ -57,6 +57,7 @@

自启动

配置修改

配置文件

+

配置[KEY]

数据列表

文档状态

负载状态

diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 7b9a4b6e2..870884041 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -42,6 +42,9 @@ def getConf(): path = getServerDir() + "/mongodb.conf" return path +def getConfKey(): + key = getServerDir() + "/mongodb.key" + return key def getConfTpl(): path = getPluginDir() + "/config/mongodb.conf" @@ -1451,6 +1454,8 @@ if __name__ == "__main__": print(runReplInfo()) elif func == 'conf': print(getConf()) + elif func == 'config_key': + print(getConfKey()) elif func == 'get_config': print(getConfig()) elif func == 'set_config':