1 Star 0 Fork 1

静雪无风/iHealth_site

forked from Jonariguez/iHealth_site 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
uwsgiserver.sh 1.10 KB
Copy Edit Raw Blame History
#!/bin/bash
if [ ! -n "$1" ]
then
echo "Usages: sh uwsgiserver.sh [start|stop|restart|status|log]"
exit 0
fi
if [ $1 = start ]
then
psid=`ps aux | grep "uwsgi" | grep "iHealth_site" | grep -v "grep" | wc -l`
if [ $psid -gt 5 ]
then
echo "iHealth_site'uwsgi is running!"
exit 0
else
uwsgi --ini uwsgi.ini --daemonize log/uwsgi.log --module iHealth_site.wsgi
echo "Start iHealth_site'uwsgi service [OK]"
fi
elif [ $1 = stop ];then
ps -ef | grep "iHealth_site" | grep -v grep | cut -c 10-15 | xargs kill -9
echo "Stop iHealth_site'uwsgi service [OK]"
elif [ $1 = restart ];then
ps -ef | grep "iHealth_site" | grep -v grep | cut -c 10-15 | xargs kill -9
echo "Stop iHealth_site'uwsgi service [OK]"
sleep 2
uwsgi --ini uwsgi.ini --daemonize log/uwsgi.log --module iHealth_site.wsgi
echo "Start iHealth_site'uwsgi service [OK]"
elif [ $1 = status ];then
ps -ef | grep "iHealth_site" | grep -v grep
elif [ $1 = log ];then
tail -f log/uwsgi.log
else
echo "Usages: sh uwsgiserver.sh [start|stop|restart|status|log]"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/moneyking/iHealth_site.git
git@gitee.com:moneyking/iHealth_site.git
moneyking
iHealth_site
iHealth_site
master

Search