본문 바로가기

리눅스5

로그 화일 자동 조절하기 로그 화일 자동 조절하기 아파치 로그는 wtmp, lastlog 등과 같이 일정 시간, 크기 등등에 따라 로그의 순환 이 이루어지지 않습니다. logrotate 로 3개의 로그를 1달단위로 순환 하려면 /etc/logrotate.conf 파일의 마지막에 다음과 같이 추가 합니다. # system-specific logs may be configured here /usr/local/apache/log/ xxx.com { monthly rotate 2 } /usr/local/apache/log/ access_log{ monthly rotate 2 } adplant-access_log adplant-error_log adplant.-error_log adplant_inline-access_log adplant.. 2006. 10. 16.
서버종합점검[리눅스] 서버점검사항 1. SUID 점검하기.(root 소유의 SetUID및 SetGID 파일들 점검) # find / -user root -perm -4000 -ls (SetUID) # find / -user root -perm -2000 -print (SetGID) 2. 사용량 점검 # repquota -av -ag # df -h 3. 백도어 설치여부 점검.(/dev 체크 및 rootkit 점검) # find /dev -type f -ls # ./chkrootkit -> http://www.chkrootkit.org/ 4. 현재 열려진 포트 및 응답가능한 포트 점검. # netstat -atp | grep LISTEN # netstat -an | grep LISTEN 사용 프로토콜 : TCP인가? 또는 UDP.. 2006. 10. 16.
Vimrc 파일내용. 참고 http://sybd.tistory.com/100 " An example for a vimrc file. " " Maintainer: Bram Moolenaar " Last change: 2001 Jan 20 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc " for Amiga: s:.vimrc " for MS-DOS and Win32: $VIM\_vimrc " for OpenVMS: sys$login:.vimrc " Use Vim settings, rather then Vi settings (much better!). " This must be first, because it changes other options as a side effect... 2006. 7. 28.
APM설치 랜드판(apche2 붙이기) 중요항사항.. 설치후..한글문제가 나타난다... charset 부분은 알아서 잘해결.. Apache 2.0.XXX ./configure --prefix=/usr/local/apache \ --enable-rule=SHARED_CORE \ --enable-module=so \ --enable-shared=max \ --enable-so make make install ------------------------------------- php 4.3.xxx ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-apache-install=/usr/local/apache \ --enable-modules=so \ --disable-debug \ --with.. 2006. 7. 28.
APM설치 랜드판 1. RPM을 지운다 (다음중 자신에게 설치된 항목만 지우면 된다. ) 우선 apache, mysql, php 관련 RPM을 모두 삭제한후.. 다음 항목을 참고하여.. 삭제한다. shell>rpm -qa|grep apache 또는 rpm -qa|grep httpd shell>rpm -qa|grep mysql 또는 rpm -qa|grep MySQL shell>rpm -qa|grep php ->생각해본후 필요에 따라 제거하자!!! rpm -e --nodeps zlib rpm -e --nodeps zlib-devel rpm -e --nodeps curl rpm -e --nodeps curl-devel rpm -e --nodeps freetype rpm -e --nodeps freetype-devel rpm -.. 2006. 7. 28.