201507-21 从nginx日志中统计nginx缓存命中率 要统计nginx的缓存,前提肯定是你已经配置了nginx的缓存,然后需要在日志中输出缓存的状态,如下日志格式配置: log_format main '$remote_addr - $remote_user "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http.... Read More >