본문 바로가기

반응형

Linux

HAProxy 컴파일을 통해 설치하는 방법(source compile) HAProxy 컴파일을 통해 설치하는 방법(source compile) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 의존성 패키지 설치 yum install -y make gcc perl pcre-devel zlib-devel openssl-devel lua-devel systemd-devel $ lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio lua 5.3 업그레이드(lua-5.3.0) wget http://www.nosuchhost.net/~cheese/fedora/packages/epel-7/x86_64/cheese-release-7-1.noarch.rpm yum .. 더보기
java(jdk) 설치 및 java 환경 설정 java(jdk) 설치 및 java 환경 설정 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) $ getconf LONG_BIT 64 java downloads(java archive) - Java SE 17 Archive Downloads java(jdk) 설치 java 파일 다운로드 wget https://download.oracle.com/java/17/archive/jdk-17.0.6_linux-x64_bin.tar.gz -O /tmp/jdk-17.0.6_linux-x64_bin.tar.gz java 압축 풀기 tar xfz /tmp/jdk-17.0.6_linux-x64_bin.tar.gz -C /usr/local/ ja.. 더보기
우분투에서 Pacemaker와 VIP(Virtual IP)를 구성하여 고가용성 클러스터를 운영하는 방법 우분투에서 Pacemaker와 Virtual IP(VIP)를 구성하여 고가용성 클러스터를 운영하는 방법 Corosync는 클러스터 통신을 담당하며 Pacemaker는 자원 관리와 클러스터 관리를 수행합니다. PCS는 구성 및 모니터링 도구로서 클러스터 관리를 단순화합니다. 더보기 --- Corosync 클러스터 통신 소프트웨어 : Corosync는 여러 노드 간에 클러스터 구성 정보 및 상태 정보를 안정적으로 교환하기 위한 클러스터 통신 소프트웨어입니다. 확장성과 신뢰성 : Corosync는 클러스터 환경에서 확장성과 신뢰성을 제공하며, 클러스터 간의 안정적인 통신을 가능하게 합니다. 패싱 관리 : Corosync는 클러스터 내에서 데이터 패싱 및 동기화를 처리하여 클러스터 노드 간의 데이터 일관성을 유.. 더보기
[리눅스] consul-template 설치(install consul-template) consul-template 설치(install consul-template) consul-template 바이너리 파일로 설치 consul-template releases : https://releases.hashicorp.com/consul-template curl -sSL https://releases.hashicorp.com/consul-template/0.30.0/consul-template_0.30.0_linux_amd64.zip -o /tmp/consul-template.zip unzip /tmp/consul-template.zip -d /tmp/ chmod +x /tmp/consul-template mv /tmp/consul-template /usr/local/bin/consul-templ.. 더보기
What Is My IP?(myip) What Is My IP? bind utilities centos yum install -y bind-utils ubuntu apt-get install -y bind9-dnsutils Public IP Address dig @resolver1.opendns.com myip.opendns.com +short Private IP Address ip route get 1.2.3.4 | awk '{ print $7 }' | egrep -v '^$' 더보기
free 명령어 free 명령어 free 명령어는 시스템의 메모리 사용 현황을 보여주는 유틸리티입니다. 기본 구문 free [옵션] 주요 옵션 -h, --human : 사용량을 사람이 이해하기 쉬운 형식으로 출력합니다. GB, MB 등의 단위로 표시됩니다. -b, --bytes : 바이트 단위로 메모리 사용량을 표시합니다. -k, --kilo : 킬로바이트(KB) 단위로 메모리 사용량을 표시합니다. -m, --mega : 메가바이트(MB) 단위로 메모리 사용량을 표시합니다. -g, --giga : 기가바이트(GB) 단위로 메모리 사용량을 표시합니다. -s , --seconds : 지정된 시간 간격으로 메모리 사용량을 출력합니다. 는 초 단위의 시간 간격을 나타냅니다. -t, --total : 메모리 총량을 포함하여 출력.. 더보기
[리눅스] consul 보안(security credentials) 설정 consul 보안(security credentials) 설정 consul 컨테이너 실행 docker run -it --rm -v ${PWD}/consul/certs:/consul/config/certs/ consul:latest /bin/sh --- docker container start cd /consul/config/certs consul gossip 암호화 키 생성 consul keygen $ consul keygen ozAzxQlvUHL3Qr0hhW2ibUxSa4B+M6RDz2bTC8OOsN0= consul.hcl 설정 vim /etc/consul.d/consul.hcl ... # bootstrap_expect bootstrap_expect = 3 # encrypt # Specifies the.. 더보기
우분투에서 Pacemaker와 Corosync을 사용하여 HA(고가용성) 클러스터를 구성하는 방법 우분투에서 Pacemaker와 Corosync을 사용하여 HA(고가용성) 클러스터를 구성하는 방법 Pacemaker와 Corosync을 사용하여 HA (고가용성) 클러스터를 구성하는 것은 복잡한 프로세스일 수 있습니다. Pacemaker를 사용하여 VIP(가상 IP)와 노드 간 HA 클러스터를 설정하는 간략한 개요를 제공합니다. 테스트 환경 호스트 이름 서버 아이피 도메인 운영체제 비고 VIP 192.168.0.60 vip.cluster.local node1 192.168.0.51 node1.cluster.local Ubuntu 22.04 LTS node2 192.168.0.63 node2.cluster.local Ubuntu 22.04 LTS 1. Pacemaker와 Corosync 설치 sudo ap.. 더보기

728x90
반응형