본문 바로가기

리눅스

cronolog를 컴파일하여 설치하고 로그를 설정하는 방법 cronolog를 컴파일하여 설치하고 로그를 설정하는 방법 Cronolog를 컴파일하여 설치하고 Apache 로그를 설정하는 방법을 안내드리겠습니다. 이 방법은 소스 코드를 직접 다운로드하여 컴파일하고 설치하는 과정을 포함합니다. 아래 단계를 따라 진행하시면 됩니다. 1. 필요한 패키지 설치 먼저, Cronolog를 컴파일하는 데 필요한 일부 개발 도구와 라이브러리를 설치합니다. sudo yum install -y gcc make 2. Cronolog 다운로드 및 설치 Cronolog의 공식 웹 사이트(http://cronolog.org/)에서 최신 소스 코드를 다운로드합니다. 아래 예시에서는 버전 1.7을 사용합니다. 그러나 현재 시점에서는 이 버전보다 더 높은 버전이 나올 수도 있으므로 공식 웹 사이.. 더보기
도커 컴포즈 설치(docker-compose install) 도커 컴포즈 설치(docker-compose install) 도커 컴포즈 최신 버전 확인 : https://github.com/docker/compose/releases $ curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4 v2.15.1 도커 컴포트 v2 최신 버전 설치 sudo curl -sSL "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4).. 더보기
[리눅스] td-agent-bit 설치 td-agent-bit 설치 td-agent-bit.repo 저장소 등록 - centos7 cat 더보기
[draft] systemctl status 명령어 systemctl status 명령어systemctl status 명령어 구문- systemctl status { service-name }- systemctl status { unit-name } -l, --fullDo not ellipsize unit names, process tree entries, journal output, or truncate unit descriptions in the output of status, list-units, list-jobs, and list-timers.systemctl status vault --full --no-pagerDo not pipe output into a pager.systemctl status vault --no-pagersystemctl 사.. 더보기
[draft] Consul 클러스터를 구성하는 방법 Consul 클러스터를 구성하는 방법테스트 환경호스트 이름서버 아이피Type비고node211192.168.0.211server node212192.168.0.212server node213192.168.0.213server node214192.168.0.214client 1. 각 서버 노드에 Consul 설치consul 설치 : https://sangchul.kr/6322. Consul 클러스터를 구성호스트 파일 설정sudo tee -a /etc/hosts > /dev/null Consul 설정 파일 작성consul.hcl 설정(/etc/consul.d/consul.hcl)각 서버 노드에 대해 설정 파일을 작성합니다.vim /etc/consul.d/consul.hclnode211sudo tee /etc/.. 더보기
[draft] 우분투에 Consul을 설치하고 설정하는 방법 우분투에 Consul을 설치하고 설정하는 방법(install consul)consul ports tableUseDefault PortsDNS: The DNS server (TCP and UDP)8600HTTP: The HTTP API (TCP Only)8500HTTPS: The HTTPs APIdisabled (8501)*gRPC: The gRPC APIdisabled (8502)*LAN Serf: The Serf LAN port (TCP and UDP)8301Wan Serf: The Serf WAN port (TCP and UDP)8302server: Server RPC address (TCP Only)8300Sidecar Proxy Min: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최소 .. 더보기
[draft] Vault를 사용하여 SSH 인증을 관리하는 방법 Vault를 사용하여 SSH 인증을 관리하는 방법(ssh authentication)테스트 환경호스트 이름아이피역할운영체제비고node141192.168.0.141vault serverubuntu 24.04 node142192.168.0.142ssh serverubuntu 22.04 node143192.168.0.143ssh clientubuntu 22.04 Vault 데이터 디렉터리 초기화 및 서버 재시작sudo systemctl stop vaultsudo rm -rf /opt/vault더보기---GPG 키와 저장소 추가wget -O- https://apt.releases.hashicorp.com/gpg \ | sudo gpg --dearmor --yes -o /usr/share/keyrings/h.. 더보기
[draft] 리눅스에서 파일 디스크립터를 확인하고 설정하는 방법 리눅스에서 파일 디스크립터를 확인하고 설정하는 방법파일 디스크립터(File Descriptor, FD)는 유닉스 및 유닉스 계열 운영 체제에서 파일, 소켓, 파이프 등의 입출력 자원을 나타내는 정수값입니다.파일 디스크립터에 대한 주요 개념파일 디스크립터의 정의시스템으로부터 할당받은 파일을 대표하는 음수가 아닌 정수 값 (0과 양수).프로세스에서 열린 파일의 목록을 관리하는 테이블의 인덱스.유닉스 시스템의 모든 것유닉스 시스템에서는 모든 것을 파일로 취급합니다.파일 디스크립터는 정규 파일(Regular File), 디렉토리(Directory), 소켓(Socket), 파이프(PIPE), 블록 디바이스(Block Device), 캐릭터 디바이스(Character Device) 등을 포함한 모든 객체를 관리합니.. 더보기