nohup python test.py &
nohup python test.py 2>&1 &
nohup python test.py > test.out 2>&1 &
上面三種方式無論在nohup.out 或test.out都看不到數據結果,這是因爲python執行有緩存輸出
解決
nohup python -u test.py > test.out 2>&1 &
nohup python test.py &
nohup python test.py 2>&1 &
nohup python test.py > test.out 2>&1 &
解決
nohup python -u test.py > test.out 2>&1 &
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫