1. yum install rsyslog
2. /etc/rsyslog.conf 15, 16번 주석(#) 해제
$ModLoad imudp
$UDPServerRun 514
3. systemctl restart rsyslog
4. 리눅스 방화벽을 사용하고 있다면 UDP 514 오픈
5. 기본적으로 /var/log/messages에 적재된다
'Linux > RedHat, CentOS, ubuntu' 카테고리의 다른 글
[리눅스 명령어] tee 표준입력으로부터 표준출력과 파일로 저장 (0) | 2019.11.25 |
---|---|
CentOS 7 SFTP만 사용할 수 있는 계정 만들기 (0) | 2019.11.24 |
[ Centos 5 ~ 6 ] chkconfig를 이용하여 서비스 자동실행 등록 (0) | 2019.11.22 |
centos semanage 명령어 활성화 (0) | 2019.11.22 |
Compression Comparison of gzip and 7z on CentOS 7. (CentOS 7에서 gzip과 7z 압축 비교) (0) | 2019.10.25 |
Linux 배너파일(issue, issue.net, motd)과 ssh 배너설정 (0) | 2019.10.15 |
linux history 명령어 실행일시 표시하기 (0) | 2019.10.07 |
리눅스에서 cifs 마운트 폴더 실행금지 시키기 (0) | 2019.07.25 |