본문 바로가기

Developement/Server

Apache Log Delete

아파치를 재 시작 없이 로그 데이터 삭제 방법입니다.

 

1. rpm 으로 설치가 되어 있을 경우

    cp -f /dev/null /etc/httpd/logs/access_log

   cp: overwrite `/etc/httpd/logs/access_log'?  y

2. 소스로 설치가 되었을 경우

    cp -f /dev/null /usr/local/apache/logs/access_log

   cp: overwrite `/etc/httpd/logs/access_log'? y

 

위 2가지 방법의 차이점이라면, 단지 Log 파일의 위치 일 것입니다.

 

'Developement > Server' 카테고리의 다른 글

SSL 설치 과정  (0) 2013.06.05
한글 Putty Backup  (0) 2013.04.01
IPTables 설정 방법  (0) 2012.10.20
SFTP 사용 안하기  (0) 2012.08.24
Apache Log Delete  (0) 2012.08.22