nginx的关闭方法
sed -i '/log_format/a\ access_log off;' /usr/local/nginx/conf/nginx.conf
apache的关闭方法
sed -i 's#CustomLog "logs/access_log" common#CustomLog /dev/null common#' /usr/local/apache/conf/httpd.conf
nginx的关闭方法
sed -i '/log_format/a\ access_log off;' /usr/local/nginx/conf/nginx.conf
apache的关闭方法
sed -i 's#CustomLog "logs/access_log" common#CustomLog /dev/null common#' /usr/local/apache/conf/httpd.conf