Update index.py

This commit is contained in:
Mr Chen 2024-09-09 22:56:52 +08:00
parent 2f98228310
commit f67342fd7a
1 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,10 @@ def initdUinstall():
def runInfo():
op_status = status()
if op_status == 'stop':
return mw.returnJson(False, "未启动!")
# 取Openresty负载状态
try:
url = 'http://127.0.0.1/nginx_status'