2016년 1월 22일 금요일

[HTTP Server] Apache log file Management

Learn about the access_log, error_log file to reduce file size.


# Reduce the file size without rebooting the Apache daemon
[root@www01 ]# cat /dev/null > error_log
[root@www01 ]# cat /dev/null > access_log

# If you have to restart the Apache daemon
[root@www01 ]# rm -rf error_log
[root@www01 ]# rm -rf aceess_log

* Return the capacity was in use, only you need to restart Apache daemon on your system.



댓글 없음:

댓글 쓰기

언제 부터 였던가 생각해보니 아르바이트 겸 외부 컨설팅을 의뢰 받고 맥북 프로를 처음 써봤을 때 부터 였던 것 같다. 지금은 거의 대부분의 작업을 맥으로 작업을 하다 보니 윈도우에서만 실행되는 일부 프로그램들 때문과 회사 내부 ERP프로그램이 윈도우 ...