리눅스 썸네일형 리스트형 ubuntu 환경에서 elasticsearch와 kibana를 설치하는 방법 ubuntu 환경에서 elasticsearch와 kibana를 설치하는 방법(8.x) 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04.1 LTS Elasticsearch 설치하기 Elasticsearch의 공식 GPG key 다운로드하기 wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - $ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d inste.. 더보기 SecureCRT 접속 시 Key exchange failed 오류 SecureCRT 접속 시 Key exchange failed 오류key exchange failed 오류No compatible key-exchange method. The server supports these methods: diffie-hellman-group14-sha256"No compatible key-exchange method. The server supports these methods: diffie-hellman-group14-sha256" 오류는 SecureCRT가 호환되는 키 교환 방법을 찾지 못하여 발생합니다. 이 오류를 해결하기 위해 다음 방법을 시도해 볼 수 있습니다. 1. SecureCRT 업데이트: SecureCRT의 최신 버전으로 업데이트하면 호환되는 키 교환 방법을 지.. 더보기 shasum 명령어 shasum 명령어 shasum은 파일의 SHA (Secure Hash Algorithm) 체크섬을 계산하는 명령어입니다. 파일이나 데이터의 무결성을 검증하거나 파일이 변경되지 않았는지 확인하는 데 사용됩니다. perl-Digest, perl-Digest-SHA 패키지 Description $ yum info perl-Digest Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Installed Packages Name : perl-Digest Arch : noarch Version : 1.17 Release : 245.amzn2 Size : 28 k Repo : installed From repo : amzn2-core Su.. 더보기 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 .. 더보기 [리눅스] consul-template 파일 생성 consul-template 파일 생성 데이터 추가(키 등록) consul kv put web/server/config/webserv1-hostname webserv1 consul kv put web/server/config/webserv1-ip 1.1.1.1 webconfig.json.tmpl 파일 생성 vim webconfig.json.tmpl server_hostname: {{ key "web/server/config/webserv1-hostname" }} server_ip: {{ key "web/server/config/webserv1-ip" }} consul-template 명령 실행 consul-template -template "webconfig.json.tmpl:webconfig.json".. 더보기 HashiCorp Consul KV 사용하는 방법 HashiCorp Consul KV 사용하는 방법(CLI · REST API · consul-template)Consul은 단순 Key-Value 저장소 이상의 기능을 제공하지만 그중 가장 기본이자 많이 사용되는 기능이 바로 KV(Key-Value) Store입니다. consul 사용법consul kv더보기---Usage: consul kv [options] [args] This command has subcommands for interacting with Consul's key-value store. Here are some simple examples, and more detailed examples are available in the subcommands or the documentati.. 더보기 [리눅스] 리눅스에서 CPU 사용률을 계산하고, 소수점 2자리까지 출력하는 쉘 스크립트 예제 - by ChatGPT 리눅스에서 CPU 사용률을 계산하고, 소수점 2자리까지 출력하는 쉘 스크립트 예제 vim cpu-usage.sh #!/bin/bash # Get the CPU statistics from /proc/stat file cpu_stats=(`cat /proc/stat | grep '^cpu '`) # Calculate the total CPU time. total_cpu_time=0 for stat in "${cpu_stats[@]:1}"; do total_cpu_time=$((total_cpu_time + stat)) done # Calculate the CPU idle time. cpu_idle_time=${cpu_stats[4]} # Calculate the CPU usage percentage. cp.. 더보기 consul 서비스 등록 - 2 consul 서비스 등록consul nodescurl -s localhost:8500/v1/catalog/nodes | jqconsul nodes leadercurl -s localhost:8500/v1/status/leaderconsul members address listcurl -s http://127.0.0.1:8500/v1/agent/members | jq -r '.[].Addr'consul domain 확인(ptr 레코드 질의)dig @127.0.0.1 -p 8600 -x {Consul Member IP}dig @127.0.0.1 -p 8600 -x {Consul Member IP}CONSUL CLIENT ADDRESS(local ip)export CONSUL_CLIENT_ADDRESS=`ip.. 더보기 이전 1 ··· 85 86 87 88 89 90 91 ··· 194 다음