변군이글루 썸네일형 리스트형 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.. 더보기 Amazon Linux 2 인스턴스에 SSM Agent(Systems Manager Agent) 업데이트하기 Amazon Linux 2 인스턴스에 SSM Agent(Systems Manager Agent) 업데이트하기테스트 환경$ cat /etc/os-release NAME="Amazon Linux"VERSION="2"ID="amzn"ID_LIKE="centos rhel fedora"VERSION_ID="2"PRETTY_NAME="Amazon Linux 2"ANSI_COLOR="0;33"CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"HOME_URL="https://amazonlinux.com/"ssm agent(amazon-ssm-agent) 버전 확인amazon-ssm-agent -version$ amazon-ssm-agent -versionSSM Agent version: 3.0.. 더보기 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.. 더보기 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 '^$' 더보기 리눅스 free 명령어 사용법 정리 리눅스 free 명령어 사용법 정리free 명령어는 시스템의 메모리 사용 현황을 보여주는 유틸리티입니다.기본 구문free [옵션]주요 옵션-h, --human : 사용량을 사람이 이해하기 쉬운 형식으로 출력합니다. GB, MB 등의 단위로 표시됩니다.-b, --bytes : 바이트 단위로 메모리 사용량을 표시합니다.-k, --kilo : 킬로바이트(KB) 단위로 메모리 사용량을 표시합니다.-m, --mega : 메가바이트(MB) 단위로 메모리 사용량을 표시합니다.-g, --giga : 기가바이트(GB) 단위로 메모리 사용량을 표시합니다.-s , --seconds : 지정된 시간 간격으로 메모리 사용량을 출력합니다. 는 초 단위의 시간 간격을 나타냅니다.-t, --total : 메모리 총량을 포함하여 출력.. 더보기 HashiCorp Nomad Cluster 구성 HashiCorp Nomad Cluster 구성(install nomad cluster)HashiCorp Nomad를 사용하여 멀티 서버 기반 Nomad 클러스터(Server + Client)를 구성하는 방법입니다.테스트 환경호스트 이름서버 아이피Type비고control1192.168.0.51server node1192.168.0.61server node2192.168.0.62server node3192.168.0.63client 1. Nomad 설치nomad 설치 : https://scbyun.com/1494버전 확인nomad --version2. Nomad Server Cluster 구성Server 노드 설정 (control1, node1, node2)각 Server 노드에 동일하게 /etc/noma.. 더보기 HashiCorp Nomad 서버를 설치하고 구성하는 방법 HashiCorp Nomad 서버를 설치하고 구성하는 방법(install nomad)HashiCorp Nomad 서버를 설치하고 단일 노드(Server + Client)로 구성하는 방법입니다.Nomad란 무엇인가?Nomad는 클러스터 환경에서 다음과 같은 작업을 담당합니다.애플리케이션 실행 위치 결정(스케줄링)컨테이너 / 바이너리 / 배치 작업 실행장애 발생 시 재시작 및 재배치리소스(CPU, 메모리) 기반 작업 관리Kubernetes와 비슷한 역할을 하지만 훨씬 가볍고 단순한 구조가 특징입니다.우분투에서 Nomad 서버 설치패키지 설치sudo apt-get update && sudo apt-get install -y wget gpg coreutilsHashiCorp 공식 APT 저장소 등록wget -q.. 더보기 Consul 클러스터를 구성하는 방법 Consul 클러스터를 구성하는 방법테스트 환경호스트 이름서버 아이피Type비고node111192.168.10.111server node112192.168.10.112server node113192.168.10.113server haproxy100192.168.10.110client 1. 각 서버 노드에 Consul 설치consul 설치 : https://scbyun.com/14902. Consul 클러스터를 구성호스트 파일 설정sudo tee -a /etc/hosts > /dev/null Consul 설정 파일 작성consul.hcl 설정(/etc/consul.d/consul.hcl)각 서버 노드에 대해 설정 파일을 작성합니다.vim /etc/consul.d/consul.hclnode111sudo te.. 더보기 이전 1 ··· 24 25 26 27 28 29 30 ··· 70 다음