다양한 종속성이 있는 프로젝트 를 MAC에 설치하고 실행 중입니다.
하지만 우분투에서 실행하려고 할 때 같은 프로젝트에서 오류가 발생합니다.
nohup : 우분투에서 stderr을 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 &
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다