当前位置:Gxlcms > 数据库问题 > nginx关闭全局access.log,error.log

nginx关闭全局access.log,error.log

时间:2021-07-01 10:21:17 帮助过:41人阅读

如果nginx的server里没配置access.log,nginx会默认将server的访问日志记录到access.log,

关闭方法:

在nginx.conf配置文件中,

在全局配置中添加 error_log off;

在http块中添加:access_log off;

 

然后在server中单独配置access.log

nginx关闭全局access.log,error.log

标签:访问   error   默认   文件中   str   配置文件   nbsp   conf   ror   

人气教程排行