nginx安装完毕运行后,默认会纪录access日志,在压力测试下,该日志增长很快,关闭方法如下:


在nginx.conf中找到access_log那行,修改为:

access_log /dev/null