Python nohup:在ubuntu中将stderr重定向到stdout

Python nohup:在ubuntu中将stderr重定向到stdout,python,ubuntu,Python,Ubuntu,我有不同的依赖性,我把它安装在MAC上,运行良好 但当我尝试在ubuntu上运行时,同样的项目会出现错误: nohup:将stderr重定向到ubuntu中的stdout 为了运行那个项目,我必须运行/start.sh文件 start.sh中的命令 nohup python2.7 redis_worker.py >> worker.out & sleep 1 nohup python2.7 app.py >> recv.out & echo "Visit

我有不同的依赖性,我把它安装在MAC上,运行良好

但当我尝试在ubuntu上运行时,同样的项目会出现错误:

nohup:将stderr重定向到ubuntu中的stdout

为了运行那个项目,我必须运行/start.sh文件

start.sh中的命令

nohup python2.7 redis_worker.py >> worker.out &
sleep 1
nohup python2.7 app.py >> recv.out &
echo "Visit the url: http://127.0.0.1:8802/"
echo "http://127.0.0.1:8802/"
然后它就会发出声音

ekodev@ezp:~/Documents/flipkart-scraper-master$ ./start.sh
nohup: redirecting stderr to stdout
Visit the url: http://127.0.0.1:8802/
http://127.0.0.1:8802/
ekodev@ezp:~/Documents/flipkart-scraper-master$ nohup: redirecting stderr to stdout

有谁能告诉我主要问题是什么吗?

&
前面的末尾添加
2>&1

nohup python2.7 redis_worker.py >> worker.out 2>&1 &