mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -803,6 +803,13 @@ def uninstallLib(version):
|
||||
else:
|
||||
return mw.returnJson(False, '卸载错误信息!:' + data[1])
|
||||
|
||||
def getConfAppStart():
|
||||
pstart = mw.getServerDir() + '/php/app_start.php'
|
||||
return pstart
|
||||
|
||||
def opcacheBlacklistFile():
|
||||
op_bl = mw.getServerDir() + '/php/opcache-blacklist.txt'
|
||||
return op_bl
|
||||
|
||||
def installPreInspection(version):
|
||||
sys = mw.execShell(
|
||||
@@ -857,6 +864,10 @@ if __name__ == "__main__":
|
||||
print(fpmSlowLog(version))
|
||||
elif func == 'conf':
|
||||
print(getConf(version))
|
||||
elif func == 'app_start':
|
||||
print(getConfAppStart())
|
||||
elif func == 'opcache_blacklist_file':
|
||||
print(opcacheBlacklistFile())
|
||||
elif func == 'get_php_conf':
|
||||
print(getPhpConf(version))
|
||||
elif func == 'get_fpm_conf_file':
|
||||
|
||||
@@ -137,6 +137,8 @@ function phpCommonFunc(version){
|
||||
// <button class="btn btn-default btn-sm" onclick="phpPreload(\'' + version + '\')">预加载脚本</button>\
|
||||
con += '<hr/><p class="conf_p" style="text-align:center;">\
|
||||
<button class="btn btn-default btn-sm" onclick="getPHPInfo(\'' + version + '\')">查看phpinfo()</button>\
|
||||
<button class="btn btn-default btn-sm" onclick="phpPreload(\'' + version + '\')">预加载脚本</button>\
|
||||
<button class="btn btn-default btn-sm" onclick="phpOpcacheBlacklist(\'' + version + '\')">OPCACHE黑名单</button>\
|
||||
<button class="btn btn-default btn-sm" onclick="phpFpmRoot(\'' + version + '\')">PHP-FPM(global)</button>\
|
||||
</p>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user