This commit is contained in:
Mr Chen
2024-11-02 02:47:47 +08:00
parent 31571a60e3
commit 472f441c0e
5 changed files with 13 additions and 8 deletions
+3 -3
View File
@@ -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
}
+3 -3
View File
@@ -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)
+1 -1
View File
@@ -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
-1
View File
@@ -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
+6
View File
@@ -18,4 +18,10 @@ import psutil
import core.mw as mw
class monitor:
def initDBFile():
pass