1 回答
- 最新
- 投票最多
- 评论最多
0
It's a good idea to keep all logs in UTC to avoid any ambiguity around daylight savings time shifts, leap minutes, etc. That's particularly important when the filenames themselves are timestamped - i.e. you would have a "hole" in your logs when the local time leaps forward, and traffic would appear to double during one hour once it leaps back. Arguably, healthd is following the best practice and is in the clear here.
As per nginx documentation,
By default, nginx removes all environment variables inherited from its parent process except the TZ variable.
but it can be overriden in nginx.conf:
user nginx; worker_processes auto; + env TZ=UTC;
That would do the trick.
已回答 1 个月前