Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- C# SELECT 문
- MySQL
- html
- node.js
- C# SELCT
- mysql 기초문법
- Vue.js
- 백엔드
- 웹 앱 만드는법
- 웹 구현
- 리눅스마스터 1급 필기
- 산업제어시스템
- 프론트엔드
- C# 문법 기초
- 웹 개발
- 웹 앱 개발
- 리눅스 마스터 1급 실기
- C#\
- c#
- 정보처리기능사
- 리눅스 마스터 1급 합격 후기
- 산업제어시스템 보안
- 리눅스 마스터 1급 필기
- 리눅스 마스터 2급 실기
- 데이터베이스 생성 예제
- 리눅스마스터 1급 실기
- C# 문법
- 리눅스마스터
- 웹앱 구현
- 제어시스템 보안
Archives
- Today
- Total
보안 루피
리눅스마스터 1급 실기 : 로그파일 관리 본문
/etc/logrotate.conf : 로그 설정 파일
/etc/logrotate.d 내부에 설정할 수 있는 여러 파일이 존재
[root@localhost logrotate.d]# ls
bootlog firewalld iscsiuiolog numad samba vsftpd
chrony glusterfs libvirtd ppp sssd wpa_supplicant
cups httpd libvirtd.qemu psacct syslog yum
vi /etc/logrotate.conf
[root@localhost logrotate.d]# vi /etc/logrotate.conf
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}
# system-specific logs may be also be configured here.
[주기]
- daily : 일
- weekly : 주
- monthly : 달
- yearly : 연
[rotate]
횟수 설정
create 허가권 소유자 소유그룹
로그파일명을 지정할 때
create 0664 root utmp
minisize 1M : 1M 가되면 로테이트 실행하겠다.
missingok : missing ok(놓쳐도 괜찮아) 로그파일 없으면 에러 메시지 출력 X
nomissingok : no missing ok (놓치지않겠다) 로그파일 없으면 에러메세지 출력 O
답
더보기
1. /etc/logrotated.conf
2. /var/log/wtmp
3.weely
4.missingok
create 0600 root utmp 파일 권한 0600 소유자 root 소유그룹 utmp
rotate 5 5번 로테이트
'리눅스 마스터 1급' 카테고리의 다른 글
리눅스마스터 1급 실기 : NIS (0) | 2023.05.08 |
---|---|
리눅스마스터 1급 실기 : vsftpd (0) | 2023.05.04 |
리눅스 마스터 1급 실기 : fdisk, mkfs, 디스크쿼터 (0) | 2023.05.04 |
리눅스마스터 1급 실기 : 허가권 (0) | 2023.05.04 |
리눅스마스터 1급 실기 : TCP Wrapper ( /etc/hosts.deny allow) (0) | 2023.05.03 |