pull/632/head
Mr Chen 6 months ago
parent 31571a60e3
commit 472f441c0e
  1. 6
      new_cli.sh
  2. 6
      panel_task.py
  3. 2
      scripts/rememory.sh
  4. 1
      web/app.py
  5. 6
      web/utils/system/monitor.py

@ -65,12 +65,12 @@ mw_start_debug(){
mw_start_debug2(){
python3 panel_task.py >> $DIR/logs/panel_task.log 2>&1 &
gunicorn -b :7200 -w 1 app:app
cd ${DIR}/web && gunicorn -b :7200 -w 1 app:app
}
mw_start_debug3(){
gunicorn -c setting.py app:app
python3 panel_task.py
cd ${DIR}/web && gunicorn -c setting.py app:app
cd ${DIR} && python3 panel_task.py
}

@ -584,9 +584,9 @@ def setDaemon(t):
def run():
# # 系统监控
# sysTask = threading.Thread(target=systemTask)
# sysTask = setDaemon(sysTask)
# sysTask.start()
sysTask = threading.Thread(target=systemTask)
sysTask = setDaemon(sysTask)
sysTask.start()
# # PHP 502错误检查线程
# php502 = threading.Thread(target=check502Task)

@ -32,7 +32,7 @@ fi
echo "OpenResty -- END"
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81)
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82 83 84)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "PHP${PHP_VER} -- START"
if [ -f /usr/lib/systemd/system/php${PHP_VER}.service ];then

@ -20,7 +20,6 @@ import os
if sys.path[0] != os.path.dirname(os.path.realpath(__file__)):
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
# print(sys.path)
import config
from admin import app, socketio

@ -18,4 +18,10 @@ import psutil
import core.mw as mw
class monitor:
def initDBFile():
pass

Loading…
Cancel
Save