#并打印日志 nohup python -u xxx.py params1 > log.out 2>&1 & #查询下进程 ,可查看pid ps -ef | grep xxx # 终止脚本进程 kill -9 pid