리눅스 로그관리 loglotate
# Operation System/Linux2022. 11. 23. 14:42리눅스 로그관리 loglotate

리눅스에서 서버를 운영하다 보면 로그를 보고 서버의 상태 혹은 장애를 대비합니다. 그래서 대부분의 모든 로그는 남기도록 설정하는데 이러한 로그들은 시간이 점점 지나면서 엄청난 크기로 커지게 됩니다. 엄청난 크기로 커지기 전에 로그들을 잘관리하도록 설정하는 기능이 logrotate 입니다 loglotate 실행순서 loglotate 파일구조 데몬 프로그램 /usr/sbin/logrotate Logrotate 데몬 설정파일 /etc/logrotate.conf Logrotate를 프로세스 설정파일 /etc/logrotate.d/ Logrotate 작업내역 로그 /etc/cron.daily/logrotate loglotate 주요 옵션 설명 옵션명 설 명 rotate 10000 로그 파일 갯수를 10000개로 ..

리눅스 시스템 모니터링 vmstat command
# Operation System/Linux2022. 11. 1. 07:49리눅스 시스템 모니터링 vmstat command

[darksharavim]vmstat 1 5 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 2551860 8171968 0 2549512 0 0 3 11 0 0 1 0 99 0 0 0 0 2551860 8171912 0 2549512 0 0 0 411 541 998 1 0 99 0 0 0 0 2551860 8171880 0 2549512 0 0 0 0 462 918 0 0 100 0 0 0 0 2551860 8171912 0 2549512 0 0 0 0 523 949 0 1 99 0 0 0 0 25..

리눅스 시스템 모니터링 top command
# Operation System/Linux2022. 10. 25. 14:40리눅스 시스템 모니터링 top command

top 시스템의 상태 파악(cpu, 메모리, 프로세스) 기본설정은 3초마다 화면갱신 [darksharavim]top top - 13:40:57 up 179 days, 22:28, 2 users, load average: 0.00, 0.02, 0.05 Tasks: 200 total, 1 running, 199 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.4 us, 2.9 sy, 0.0 ni, 95.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 16266496 total, 8796040 free, 5646192 used, 1824264 buff/cache KiB Swap: 5242876 total, 2562760 free, 2680116 us..

[파이썬]centos7x chrome driver 사용
# Operation System/Linux2022. 10. 20. 16:17[파이썬]centos7x chrome driver 사용

설치환경 [darksharavim.tistory.com]cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 크롬설치 [darksharavim.tistory.com]yum -y install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm [darksharavim.tistory.com]rpm -qa | grep google-chrome google-chrome-stable-106.0.5249.119-1.x86_64 크롬드라이버 설치 [darksharavim.tistory.com]google-chrome --version Google Chrome 106.0.5249...

linux malware detect maldet
# Operation System/Linux2022. 7. 8. 07:32linux malware detect maldet

다운로드 [darksharavim.tistory.com]cd /tmp/ [darksharavim.tistory.com]wget http://www.rfxn.com/downloads/maldetect-current.tar.gz --2022-07-08 14:26:23-- http://www.rfxn.com/downloads/maldetect-current.tar.gz Resolving www.rfxn.com (www.rfxn.com)... 172.67.144.156, 104.21.28.71, 2606:4700:3036::ac43:909c, ... Connecting to www.rfxn.com (www.rfxn.com)|172.67.144.156|:80... connected. HTTP request sen..

image