移除 nginx、php-fpm 的默认日志
默认日志会显示出来,据说服务器流量较大时,这也会造成负载。 所以来了解一下如何移除。 nginx 假设配置如下: 只需简单地设置为 即可。 php fpm 对于 PHP,只需简单地设置 即可。
GGAMI
默认日志会显示出来,据说服务器流量较大时,这也会造成负载。 所以来了解一下如何移除。 nginx 假设配置如下: 只需简单地设置为 即可。 php fpm 对于 PHP,只需简单地设置 即可。
默认日志会显示出来,据说服务器流量较大时,这也会造成负载。
所以来了解一下如何移除。
log_format main_logs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'$request_time $upstream_response_time $pipe $upstream_cache_status';
access_log /dev/stdout main_logs;假设配置如下:
access_log off;只需简单地设置为 access_log off; 即可。
[www]
user = root
group = root
access.log = /dev/null对于 PHP,只需简单地设置 access.log = /dev/null 即可。