Apache和Nginx使用一段時間后日志文件會變的非常大,。關(guān)閉apache日志apahce的配置文件conf文件里面 打開后把出日志的那個前面添加個#就行了 錯誤日志: ErrorLog "logs/www.scutephp.net.error.log" 網(wǎng)站日志的: CustomLog "logs//www.scutephp.net.access.log" common ============================================== 關(guān)閉nginx日志 http { server { access_log nul; #關(guān)閉訪問日志 一定加在server里面 } } 文章來源:https://www./faq/233295.html |
|