오래전 이야기/Server 120

logrotate 방법

1. logrotate 개론 앞선강좌에서 누차 강조드린 바와 같이 리눅스뿐아니라 거의 모든 운영체제에서는 로그파일의 종류와 그 크기를 어떻게 보관하고 관리할 것인가에 대한 것이 아주중요하게 다루어지고 있다. logrotate는 이에 대한 해답을 주는 유틸리티라고 할 수 있다. 즉, logrotate는 시스템에 있는 모든 로그파일들을 관리할 수 있으며 이들 로그파일들을 자르고(rotate), 보관하고, 삭제하고, 압축하고, 메일로 보내주는 등의 작업을 할 수 있게 한다. 구체적인 예를 들자면, 아파치 웹서버에서 방문기록을 저장하고 있는 웹로그파일은 access_log이다. (물론 이파일의 이름과 위치는 얼마든지 바꾸어 사용할 수 있다. ) 이 파일은 하루에도 엄청나게 많은 용량으로 저장이 된다. (물론 어..

아파치의 ssl 패스워드를 잊어버렸을때..

일반적으로 https를 쓰기위해서는 아파치 시작시 apachectl startssl 을 해야 한다. 그리고 우리는 설치시 정했던 패스워드를 넣어야 한다. 하지만 기억이 안난다면..-_-; 그냥 실행시키자.. How can I get rid of the pass-phrase dialog at Apache startup time? [L] The reason why this dialog pops up at startup and every re-start is that the RSA private key inside your server.key file is stored in encrypted format for security reasons. The pass-phrase is needed to be able ..

apache 서버의 기본적인 보안사항

아파치 정보출력제어 # # ServerTokens # This directive configures what you return as the Server HTTP response # Header. The default is 'Full' which sends information about the OS-Type # and compiled in modules. # Set to one of: Full | OS | Minor | Minimal | Major | Prod # where Full conveys the most information, and Prod the least. # ServerTokens Prod ===> 이부분을 알맞게 수정 추천하는 방식은 Prod 브라우징 제거 # # # Possible ..

lspci: /usr/share/hwdata/pci.ids: duplicate entry - lspci error

[root@www2 hwdata]# lspci -v lspci: /usr/share/hwdata/pci.ids, line 8246: duplicate entry 이런 황당한 경우가 있나..-_-;; [root@www2 hwdata]# uniq -i /usr/share/hwdata/pci.ids /usr/share/hwdata/pci.ids.new [root@www2 hwdata]# mv /usr/share/hwdata/pci.ids.new /usr/share/hwdata/pci.ids mv: overwrite `/usr/share/hwdata/pci.ids'? y [root@www2 hwdata]# lspci 00:00.0 Host bridge: Intel Corp. E7501 Memory Control..