mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:39:25 +08:00
update
This commit is contained in:
+3
-3
@@ -65,12 +65,12 @@ mw_start_debug(){
|
|||||||
|
|
||||||
mw_start_debug2(){
|
mw_start_debug2(){
|
||||||
python3 panel_task.py >> $DIR/logs/panel_task.log 2>&1 &
|
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(){
|
mw_start_debug3(){
|
||||||
gunicorn -c setting.py app:app
|
cd ${DIR}/web && gunicorn -c setting.py app:app
|
||||||
python3 panel_task.py
|
cd ${DIR} && python3 panel_task.py
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -584,9 +584,9 @@ def setDaemon(t):
|
|||||||
|
|
||||||
def run():
|
def run():
|
||||||
# # 系统监控
|
# # 系统监控
|
||||||
# sysTask = threading.Thread(target=systemTask)
|
sysTask = threading.Thread(target=systemTask)
|
||||||
# sysTask = setDaemon(sysTask)
|
sysTask = setDaemon(sysTask)
|
||||||
# sysTask.start()
|
sysTask.start()
|
||||||
|
|
||||||
# # PHP 502错误检查线程
|
# # PHP 502错误检查线程
|
||||||
# php502 = threading.Thread(target=check502Task)
|
# php502 = threading.Thread(target=check502Task)
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ fi
|
|||||||
echo "OpenResty -- END"
|
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
|
for PHP_VER in ${PHP_VER_LIST[@]}; do
|
||||||
echo "PHP${PHP_VER} -- START"
|
echo "PHP${PHP_VER} -- START"
|
||||||
if [ -f /usr/lib/systemd/system/php${PHP_VER}.service ];then
|
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__)):
|
if sys.path[0] != os.path.dirname(os.path.realpath(__file__)):
|
||||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|
||||||
# print(sys.path)
|
|
||||||
|
|
||||||
import config
|
import config
|
||||||
from admin import app, socketio
|
from admin import app, socketio
|
||||||
|
|||||||
@@ -18,4 +18,10 @@ import psutil
|
|||||||
import core.mw as mw
|
import core.mw as mw
|
||||||
|
|
||||||
|
|
||||||
|
class monitor:
|
||||||
|
|
||||||
|
def initDBFile():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user