问题: =》nohup python3 xxxx.py &后台启动脚本 tail -100f nohup.out --------> 无显示 原因: python的输出有缓冲,导致日志文件并不能够马上看到输出。 -u参数,使得python不启用缓冲。 方法: 所以修改命令即可: nohup python3 -u xxxx.py > nohup.out & 查看后台Python进程 ps -aux | grep python kill -9 pid