1:cenots7后台运行python脚本
nohup python -u Scheduler_job.py > debug.log 2>&1 &
2:查看当前运行的进程列表
netstat -tunlp
3:ps aux | grep python
查看包含python的进程
4:kill -9 14316 强制结束进程
5:gunicorn --config=config.py index:app
通过配置文件的方式,启动flask站点
6:根据端口查进程
netstat -anp|grep 8083

image.png
7:根据端口查询进程ID
netstat -anp|grep 8083 |awk '{printf $7}'|cut -d/ -f1

image.png