1. Linux 后台运行命令(nohup) nohup python3 run.py >> run.log 2>&1 & ps -ef | grep python3 产看所有python3进程 2. Windows 后台运行命令(pythonw) pythonw .\run.py > run.log 后台使用Python运行run.py文件,日志输出到当前目录run.log文件 tasklist 查看windows下所有进程 taskkill /f /im 进程号 指定进程号或名称杀死进程