본문 바로가기

반응형

리눅스

ZABBIX Disk read/write request responses 임계치 변경 ZABBIX Disk read/write request responses 임계치 변경zabbix 알람zabbix 서버에서 알람 메시지 확인[보고서] > [액션 로그]제목:Problem: sda: Disk read/write request responses are too high (read > 20 ms for 15m or write > 20 ms for 15m)메시지:Problem started at 13:24:28 on 2021.04.02Problem name: sda: Disk read/write request responses are too high (read > 20 ms for 15m or write > 20 ms for 15m)Host: db-xxxxxxxIP: 192.168.xx.xxxSev.. 더보기
CentOS 7에서 OpenSSL을 최신 버전으로 업그레이드하는 방법 CentOS 7에서 OpenSSL을 최신 버전으로 업그레이드하는 방법 CentOS 7 OpenSSL 지원 프로토콜 확인 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 $ openssl ciphers -v | awk '{print $2}' | sort | uniq SSLv3 TLSv1.2 OpenSSL 삭제 yum remove openssl 기본 라이브러리 설치 yum install gcc gcc-c++ pcre-devel zlib-devel perl wget OpenSSL Downloads https://www.openssl.org/source/ 소스.. 더보기
디스크 I/O 성능 테스트(iops) 디스크 I/O 성능 테스트(iops)fio 설치Ubuntusudo apt-get updatesudo apt-get install -y fioAmazon Linux 2sudo yum install -y fiofio 명령어 기본 구문fio를 사용하려면 테스트를 정의하는 설정 파일을 작성해야 합니다. 설정 파일은 JSON 또는 INI 형식으로 작성할 수 있습니다. 주요 옵션filename: 테스트할 파일의 경로와 이름을 지정합니다.size: 테스트 파일의 크기를 지정합니다.bs: 블록 크기를 지정합니다.iodepth: 동시에 실행할 I/O 요청의 깊이를 지정합니다.numjobs: 병렬 작업 수를 지정합니다.rw: 읽기 및 쓰기 작업의 비율을 지정합니다.direct: 직접 I/O를 사용할지 여부를 지정합니다.블.. 더보기
운영체제 버전 정보 확인 운영체제 버전 정보 확인 /etc/os-release 파일로 확인 cat /etc/os-release Ubuntu $ cat /etc/os-release NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.4 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-an.. 더보기
Redis 모니터링을 위한 Zabbix 템플릿을 설정하는 방법 Redis 모니터링을 위한 Zabbix 템플릿을 설정하는 방법(redis 템플릿 적용)userparameter 생성vim /etc/zabbix/zabbix_agentd.d/userparameter_redis.confUserParameter=redis.local[*], redis-cli -h 127.0.0.1 -p 6379 info | grep $1 | grep -v _human | cut -d : -f2UserParameter=redis.status[*], redis-cli -h $1 -p $2 info | grep $3 | grep -v _human | cut -d : -f2UserParameter=redis.proc, pidof redis-server | wc -l템플릿(Template App Red.. 더보기
CentOS 7에서 PHP Redis 확장 모듈을 설치하는 방법 CentOS 7에서 PHP Redis 확장(Extension) 모듈을 설치하는 방법phpredis는 PHP에서 Redis를 쉽게 사용할 수 있도록 해주는 확장 모듈입니다. 필요한 패키지 설치sudo yum install -y gcc make autoconf jemalloc tclRedis 패키지 설치sudo yum install -y redissudo systemctl --now enable redisredis-cli --versionredis-cli -h 127.0.0.1 -p 6379 pingPHP Redis Extension 모듈 설치phpredis 다운로드 및 압축 해제GitHub에서 phpredis 모듈을 다운로드하고 압축을 해제합니다.cd /usr/local/srcwget https://git.. 더보기
MySQL 5에서 rpcgen 오류를 해결하는 방법 MySQL 5(MySQL 5.7)에서 rpcgen 오류를 해결하는 방법컴파일 시 오류CMake Error at rapid/plugin/group_replication/rpcgen.cmake:100 (MESSAGE): Could not find rpcgenCall Stack (most recent call first): rapid/plugin/group_replication/CMakeLists.txt:36 (INCLUDE)1. rpcgen 설치 확인rpcgen이 시스템에 설치되어 있는지 확인합니다.설치되지 않은 경우 다음 명령어를 사용하여 설치할 수 있습니다.Ubuntu/Debiansudo apt-get updatesudo apt-get install rpcbindCentOS/RHELsudo yum i.. 더보기
Let's Encrypt을 사용하여 SSL 인증서를 발급 - WEBROOT Let's Encrypt(certbot)을 사용하여 SSL 인증서를 발급 - WEBROOTWEBROOT 방식의 개요WEBROOT 방식은 도메인 소유권을 인증하기 위해, 웹 서버의 특정 경로에 인증용 파일을 생성하여 Let's Encrypt 서버가 이를 확인할 수 있도록 합니다.EPEL 패키지 설치sudo yum install -y epel-releaseCertbot 패키지 설치 및 디렉터리 권한 설정sudo yum install -y certbotmkdir -p /var/lib/letsencrypt/.well-knowncd /var/libchgrp nobody letsencryptchmod g+s letsencryptSSL 인증서 발급 - WEBROOT 방식sudo certbot certonly \ --.. 더보기

728x90
반응형