查看当前所有进程 ps -aux查看内存占用 free -m free -hpython运行log(-u 为实时写入) nohup python3 -u main.py >test.log 2>&1 &