2009年9月15日 星期二

清空apache的log檔案

清除方式:
cp /dev/null /var/log/httpd-access.log
cp /dev/null /var/log/httpd-error.log

使用別名清除(bash):
編輯/etc/profile
ee /etc/profile
aslias clrlog="cp /dev/null /var/log/httpd-access.log;cp /dev/null /var/log/httpd-error.log"