목록2021/01 (13)
변군이글루

lsyncd와 rsync를 이용한 실시간 동기화(백업) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) lsyncd, rsync 패키지 설치 [root@bvm111 : 원본 서버] #lsyncd 패키지 설치 $ yum install -y lsyncd #lsyncd.conf 파일 $ cat /etc/lsyncd.conf ---- -- User configuration file for lsyncd. -- -- Simple example for default rsync, but executing moves through on the target. -- -- For more examples, see /usr/share/doc/lsync..

아파치 모니터링 명령어 #아파치 메모리 사용량 $ ps -ylC httpd | awk '{x += $8;y += 1} END {print "Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' Memory Usage (MB): 1618.67 Average Proccess Size (MB): 323.734 # 아파치 프로세스 개수 $ ps -ef | grep httpd | wc -l 6 #아파치 동시접속자 개수 $ netstat -an | egrep :80 | egrep ESTABLISHED | wc -l 7 #아파치 커넥션 개수 $ netstat -n | grep -F :80 | egrep '(ESTAB|SYN)'..

htop 설치 및 htop 명령어 실행 : Interactive process viewer htop 설치 $ yum install -y htop htop 명령어 실행 $ htop F1(F1 키 입력) F4 filtering F5 tree view F6 sort : P(CPU%) M(MEM%)

dstat 설치 및 dstat 명령어 실행 : Versatile resource statistics tool dstat 설치 $ yum install -y dstat dstat 명령어 실행 $ dstat $ dstat -tcdml $ dstat -tal --top-io --top-cpu --top-mem dstat --help $ dstat --help Usage: dstat [-afv] [options..] [delay [count]] Versatile tool for generating system resource statistics Dstat options: -c, --cpu enable cpu stats -C 0,3,total include cpu0, cpu3 and total -d, --disk..