python deploy

nohup python -u spider.py > log_spider.log 2>&1 &

ps -ef|grep abc.py|grep -v grep |awk 'NR==1 {print $2}'|xargs kill -9
nohup python -u abc.py > log_schedule.log 2>&1 &

你可能感兴趣的:(python deploy)