Linux 后台运行程序,输出日子文件
nohup venv/bin/python bin/photo_data.py > ph_save.log 2>&1 &
或者 nohup python -u test.py > test.log 2>&1 &
sh 文件
nohup sh test.sh > test.log 2>&1 &
查看进程
ps -ef | grep python
nohup venv/bin/python bin/photo_data.py > ph_save.log 2>&1 &
或者 nohup python -u test.py > test.log 2>&1 &
sh 文件
nohup sh test.sh > test.log 2>&1 &
查看进程
ps -ef | grep python