
누구든지 나를 도와주거나 나를 올바른 방향으로 안내할 수 있기를 바랍니다. 최근에 새 호스팅으로 이동했는데 내 nginx 로그에서 이 내용이 보이기 시작했습니다.
2015/09/24 11:12:01 [notice] 6697#0: signal 10 (SIGUSR1) received, reopening logs
2015/09/24 11:12:01 [info] 6697#0: epoll_wait() failed (4: Interrupted system call)
2015/09/24 11:12:01 [notice] 6697#0: reopening logs
2015/09/24 11:12:01 [notice] 6693#0: signal 10 (SIGUSR1) received, reopening logs
2015/09/24 11:12:01 [notice] 6693#0: reopening logs
2015/09/24 11:12:01 [notice] 6694#0: signal 10 (SIGUSR1) received, reopening logs
2015/09/24 11:12:01 [info] 6694#0: epoll_wait() failed (4: Interrupted system call)
2015/09/24 11:12:01 [notice] 6694#0: reopening logs
2015/09/24 11:12:01 [notice] 6695#0: signal 10 (SIGUSR1) received, reopening logs
2015/09/24 11:12:01 [info] 6695#0: epoll_wait() failed (4: Interrupted system call)
2015/09/24 11:12:01 [notice] 6695#0: reopening logs
2015/09/24 11:12:01 [notice] 6694#0: reopening logs
2015/09/24 11:12:01 [notice] 6695#0: reopening logs
2015/09/24 11:12:01 [notice] 6696#0: reopening logs
2015/09/24 11:12:01 [notice] 6697#0: reopening logs
이전 서버에서는 그렇지 않았습니다. 이전 서버와 새 서버 모두 동일한 구성, 동일한 프로세서 및 동일한 HDD를 가지고 있습니다. nginx 구성 옵션은 다음과 같습니다.
# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.9.3
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
configure arguments: --with-http_stub_status_module
--with-http_perl_module --with-http_flv_module
--add-module=/usr/local/src/nginx_mod_h264_streaming-2.2.7
--add-module=/usr/local/src/headers-more-nginx-module-0.261
--with-debug
답변1
Nginx는 USR1 신호를 사용하여 로그 회전 목적으로 로그를 다시 엽니다. 다음을 참조하세요.
예를 들어 다음과 같이 logrotate 설정을 확인해야 합니다./etc/logrotate.d/nginx