以下是有关在群集上运行的nginx的一些信息:
nginx version: nginx/1.6.0
built by gcc 3.4.5 20051201 (Red Hat 3.4.5-2)
TLS SNI support disabled
configure arguments: --prefix=/home/work/local/nginx --with-http_ssl_module --with-http_realip_module --with-pcre=/home/work/download/pcre-8.35 --with-pcre-jit
问题是为什么Nginx每隔五分钟就会重新打开日志?我已经检查了所有的CRON任务,奇怪的是,没有CRON可以被动地向Nginx发送重启信号。
这些是我追踪Nginx error.log
2015/08/18 15:42:20 [notice] 17496#0: signal 10 (SIGUSR1) received, reopening logs
2015/08/18 15:42:20 [notice] 17496#0: reopening logs
2015/08/18 15:42:20 [notice] 17497#0: reopening logs
2015/08/18 15:42:20 [notice] 17498#0: reopening logs
2015/08/18 15:42:20 [notice] 17500#0: reopening logs
2015/08/18 15:42:20 [notice] 17503#0: reopening logs
2015/08/18 15:42:20 [notice] 17501#0: reopening logs
2015/08/18 15:42:20 [notice] 17505#0: reopening logs
2015/08/18 15:42:20 [notice] 17504#0: reopening logs
2015/08/18 15:42:20 [notice] 17512#0: reopening logs
2015/08/18 15:42:20 [notice] 17515#0: reopening logs
2015/08/18 15:42:20 [notice] 17509#0: reopening logs
2015/08/18 15:42:20 [notice] 17506#0: reopening logs
2015/08/18 15:42:20 [notice] 17517#0: reopening logs
2015/08/18 15:42:20 [notice] 17507#0: reopening logs
2015/08/18 15:42:20 [notice] 17521#0: reopening logs
2015/08/18 15:42:20 [notice] 17519#0: reopening logs
2015/08/18 15:42:20 [notice] 17511#0: reopening logs
2015/08/18 15:42:20 [notice] 17518#0: reopening logs
2015/08/18 15:42:20 [notice] 17513#0: reopening logs
2015/08/18 15:42:20 [notice] 17510#0: reopening logs
2015/08/18 15:42:20 [notice] 17520#0: reopening logs
2015/08/18 15:47:21 [notice] 17496#0: signal 10 (SIGUSR1) received, reopening logs
2015/08/18 15:47:21 [notice] 17496#0: reopening logs
2015/08/18 15:47:21 [notice] 17498#0: reopening logs
2015/08/18 15:47:21 [notice] 17497#0: reopening logs
2015/08/18 15:47:21 [notice] 17504#0: reopening logs
2015/08/18 15:47:21 [notice] 17503#0: reopening logs
2015/08/18 15:47:21 [notice] 17501#0: reopening logs
2015/08/18 15:47:21 [notice] 17500#0: reopening logs
2015/08/18 15:47:21 [notice] 17518#0: reopening logs
2015/08/18 15:47:21 [notice] 17505#0: reopening logs
2015/08/18 15:47:21 [notice] 17521#0: reopening logs
2015/08/18 15:47:21 [notice] 17520#0: reopening logs
2015/08/18 15:47:21 [notice] 17519#0: reopening logs
2015/08/18 15:47:21 [notice] 17507#0: reopening logs
2015/08/18 15:47:21 [notice] 17509#0: reopening logs
2015/08/18 15:47:21 [notice] 17517#0: reopening logs
2015/08/18 15:47:21 [notice] 17506#0: reopening logs
2015/08/18 15:47:21 [notice] 17515#0: reopening logs
2015/08/18 15:47:21 [notice] 17513#0: reopening logs
2015/08/18 15:47:21 [notice] 17511#0: reopening logs
2015/08/18 15:47:21 [notice] 17512#0: reopening logs
2015/08/18 15:47:21 [notice] 17510#0: reopening logs
感谢您的回答!
答案 0 :(得分:0)
signal 10 (SIGUSR1) received
+ GRASP - >意味着触发日志旋转...... Nginx本身并不支持。如果是的话,请查看你是否有logrotate运行 - 请验证配置。