Linux查询正在运行的python程序
ps -ef | grep python
ps -aux|grep python
export FLASK_APP=main.py
export FLASK_ENV=production
flask run -h 0.0.0.0 -p 5051
ps -ef | grep main | awk ‘{print $2}’ | xargs kill -9
gunicorn -w 4 -b 0.0.0.0:5051 main:app &
gunicorn -b 0.0.0.0:5051 main:app &
ps -ef | grep main | awk ‘{print $2}’|xargs kill -9