我是不是進(jìn)入linux 系統(tǒng)后, 直接復(fù)制下邊的關(guān)閉代碼 點(diǎn)擊回車 就自動(dòng)關(guān)閉了,以后就再也不會(huì)產(chǎn)生這些日志了 是嗎 請(qǐng)幫忙回答下,我看您回復(fù)給我的地址 看了好多遍 才迷糊過(guò)來(lái)一點(diǎn) nginx的關(guān)閉方法 sed -i '/log_format/a\ access_log off;' /www/wdlinux/nginx/conf/nginx.conf apache的關(guān)閉方法 sed -i 's#CustomLog "logs/access_log" common#CustomLog /dev/null common#' /www/wdlinux/apache/conf/httpd.conf |
我是不是進(jìn)入linux 系統(tǒng)后, 直接復(fù)制下邊的關(guān)閉代碼 點(diǎn)擊回車 就自動(dòng)關(guān)閉了,以后就再也不會(huì)產(chǎn)生這些日志了 是嗎 請(qǐng)幫忙回答下,我看您回復(fù)給我的地址 看了好多遍 才迷糊過(guò)來(lái)一點(diǎn) nginx的關(guān)閉方法 sed -i '/log_format/a\ access_log off;' /www/wdlinux/nginx/conf/nginx.conf apache的關(guān)閉方法 sed -i 's#CustomLog "logs/access_log" common#CustomLog /dev/null common#' /www/wdlinux/apache/conf/httpd.conf |
歡迎光臨 WDlinux官方論壇 (http://www.fsowen.com/bbs/) | Powered by Discuz! 7.2 |