0
monit을 사용하여 모니터링하고 다시 시작하는 node.js 애플리케이션에 대한 로깅을 설정하려고했습니다. 내가 가진 한 가지 질문은, 표준 출력은 어디로 가는가? 예를 들어, 내 MONIT의 설정은 다음과 같습니다 경우 :표준 출력이 monit 프로세스와 어울리는 곳을 혼동 함
콘솔 출력 노드 프로세스의 이동, 내가 리디렉션하지 않은 가정이나 그것을 기록 않습니다check host node_web_app_beehive with address 127.0.0.1
start program = "/bin/bash -c 'cd /srv/www/beehive/current ; source /srv/www/beehive/shared/app.env ; /usr/bin/env PORT=80$
stop program = "/usr/bin/pkill -f 'node /srv/www/beehive/current/server.js'"
if failed port 80 protocol HTTP
request/
with timeout 10 seconds
then restart
? 고맙습니다.
어떻게 작동하는지 예를 들어 보셨습니까? – worker1138