본문 바로가기

반응형

리눅스

C276x260 CentOS 7에서 HAProxy를 Source Compile 방식으로 설치하는 방법 CentOS 7에서 HAProxy를 Source Compile 방식으로 설치하는 방법(source compile)테스트 환경운영체제 정보$ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)1. 의존성 패키지 설치HAProxy 컴파일에 필요한 필수 패키지를 설치합니다.yum install -y make gcc perl pcre-devel zlib-devel openssl-devel lua-devel systemd-develLua 버전을 확인합니다.lua -vLua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio2. Lua 5.3 업그레이드HAProxy Lua 기능 사용을 위해 Lua 5.3으로 업그레이드합니다... 더보기
C276x260 java(jdk) 설치 및 java 환경 설정 java(jdk) 설치 및 java 환경 설정테스트 환경운영체제 버전 정보$ cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)$ getconf LONG_BIT64 java downloads(java archive)- Java SE 17 Archive Downloadsjava(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.gzjava 압축 풀기tar xfz /tmp/jdk-17.0.6_linux-x64_bin.tar.gz -C /usr/local/jav.. 더보기
C276x260 우분투에서 Pacemaker와 VIP(Virtual IP)를 구성하여 고가용성 클러스터를 운영하는 방법 우분투에서 Pacemaker와 Virtual IP(VIP)를 구성하여 고가용성 클러스터를 운영하는 방법 Corosync는 클러스터 통신을 담당하며 Pacemaker는 자원 관리와 클러스터 관리를 수행합니다. PCS는 구성 및 모니터링 도구로서 클러스터 관리를 단순화합니다. 더보기 --- Corosync 클러스터 통신 소프트웨어 : Corosync는 여러 노드 간에 클러스터 구성 정보 및 상태 정보를 안정적으로 교환하기 위한 클러스터 통신 소프트웨어입니다. 확장성과 신뢰성 : Corosync는 클러스터 환경에서 확장성과 신뢰성을 제공하며, 클러스터 간의 안정적인 통신을 가능하게 합니다. 패싱 관리 : Corosync는 클러스터 내에서 데이터 패싱 및 동기화를 처리하여 클러스터 노드 간의 데이터 일관성을 유.. 더보기
C276x260 consul-template 설치(install consul-template) consul-template 설치(install consul-template)consul-template 바이너리 파일로 설치consul-template releases : https://releases.hashicorp.com/consul-templatecurl -sSL https://releases.hashicorp.com/consul-template/0.30.0/consul-template_0.30.0_linux_amd64.zip -o /tmp/consul-template.zipunzip /tmp/consul-template.zip -d /tmp/chmod +x /tmp/consul-templatemv /tmp/consul-template /usr/local/bin/consul-templatecon.. 더보기
C276x260 [url] 우분투 맨페이지 저장(Ubuntu Manpage Repository) 우분투 맨페이지 저장(Ubuntu Manpage Repository) Home page : https://manpages.ubuntu.com/ Ubuntu Manpage Repository Provided by: sed_4.8-1ubuntu2_amd64 : https://manpages.ubuntu.com/manpages/kinetic/en/man1/sed.1.html 더보기
C276x260 What Is My IP?(myip) What Is My IP?bind utilitiescentosyum install -y bind-utilsubuntuapt-get install -y bind9-dnsutilsPublic IP Addressdig @resolver1.opendns.com myip.opendns.com +shortPrivate IP Addressip route get 1.2.3.4 | awk '{ print $7 }' | egrep -v '^$' 더보기
C276x260 리눅스 free 명령어 사용법 정리 리눅스 free 명령어 사용법 정리free 명령어는 시스템의 메모리 사용 현황을 보여주는 유틸리티입니다.기본 구문free [옵션]주요 옵션-h, --human : 사용량을 사람이 이해하기 쉬운 형식으로 출력합니다. GB, MB 등의 단위로 표시됩니다.-b, --bytes : 바이트 단위로 메모리 사용량을 표시합니다.-k, --kilo : 킬로바이트(KB) 단위로 메모리 사용량을 표시합니다.-m, --mega : 메가바이트(MB) 단위로 메모리 사용량을 표시합니다.-g, --giga : 기가바이트(GB) 단위로 메모리 사용량을 표시합니다.-s , --seconds : 지정된 시간 간격으로 메모리 사용량을 출력합니다. 는 초 단위의 시간 간격을 나타냅니다.-t, --total : 메모리 총량을 포함하여 출력.. 더보기
C276x260 consul 보안(security credentials) 설정 consul 보안(security credentials) 설정consul 컨테이너 실행docker run -it --rm -v ${PWD}/consul/certs:/consul/config/certs/ consul:latest /bin/sh--- docker container startcd /consul/config/certsconsul gossip 암호화 키 생성consul keygen$ consul keygenozAzxQlvUHL3Qr0hhW2ibUxSa4B+M6RDz2bTC8OOsN0=consul.hcl 설정vim /etc/consul.d/consul.hcl...# bootstrap_expectbootstrap_expect = 3# encrypt# Specifies the secret key to .. 더보기

728x90
반응형