有网友反应phpstudy和phpfind使用一段时间后日志文件会变的非常大。
关闭apache日志
apahce的配置文件conf文件里面 打开后把出日志的那个前面添加个#就行了
错误日志:ErrorLog "logs/www.phpstudy.net.error.log"
网站日志的:CustomLog "logs//www.phpstudy.net.access.log" common
==============================================
关闭nginx日志
error_log nul; #关错误闭日志
http {
server {
access_log nul; #关闭访问日志 一定加在server里面
}
}