update
This commit is contained in:
parent
afa32231ad
commit
8d27ffbe91
|
|
@ -57,6 +57,7 @@
|
|||
<p onclick="pluginInitD('mongodb');">自启动</p>
|
||||
<p onclick="mongoSetConfig();">配置修改</p>
|
||||
<p onclick="pluginConfig('mongodb');">配置文件</p>
|
||||
<p onclick="pluginConfig('mongodb','','config_key');">配置[KEY]</p>
|
||||
<p onclick="dbList();">数据列表</p>
|
||||
<p onclick="mongoDocStatus();">文档状态</p>
|
||||
<p onclick="mongoStatus();">负载状态</p>
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue