Home  >  Article  >  Backend Development  >  Apache和Nginx关闭日志方法

Apache和Nginx关闭日志方法

WBOY
WBOYOriginal
2016-06-20 13:03:351365browse

Apache和Nginx如何关闭日志

Apache和Nginx使用一段时间后日志文件会变的非常大。关闭apache日志apahce的配置文件conf文件里面  打开后把出日志的那个前面添加个#就行了

错误日志:

ErrorLog "logs/www.scutephp.net.error.log"

网站日志的:

CustomLog "logs//www.scutephp.net.access.log" common

==============================================

关闭nginx日志

<p>error_log nul;  #关错误闭日志 </p>http {<br />server {<br />access_log nul; #关闭访问日志 一定加在server里面<br />}<br />}


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn