This commit is contained in:
midoks
2022-06-14 11:56:47 +08:00
parent c8887537e5
commit 62283072ae
2 changed files with 22 additions and 2 deletions
+13 -2
View File
@@ -31,13 +31,24 @@ else
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt
fi
# pip3 install gevent flask gunicorn flask_caching flask_session
# pip3 install flask_socketio gevent-websocket psutil requests
pip install --upgrade pip
pip3 install gunicorn==20.1.0
pip3 install gevent==21.1.2
pip3 install gevent-websocket==0.10.1
pip3 install requests==2.20.0
pip3 install flask-caching>=1.10.1
pip3 install python-socketio==4.2.0
pip3 install psutil==5.9.1
pip3 install pymongo
if [ -f /etc/init.d/mw ];then
sh /etc/init.d/mw stop && rm -rf /www/server/mdserver-web/scripts/init.d/mw && rm -rf /etc/init.d/mw
fi
echo -e "stop mw"
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
port=7200