본문 바로가기

728x90

리눅스

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 더보기
[리눅스] systemctl status 명령어 systemctl status 명령어 systemctl status 명령 구문 - systemctl status { service-name } - systemctl status { unit-name } -l, --full Do 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-pager Do not pipe output into a pager. systemctl status vault --no-pager syst.. 더보기
[리눅스] consul cluster 구성 consul cluster 구성 테스트 환경 호스트 이름 서버 아이피 Type 비고 control1 192.168.0.51 server node1 192.168.0.61 server node2 192.168.0.62 server node3 192.168.0.63 client consul 설치 - consul 설치 : https://sangchul.kr/632 consul cluster 구성 consul.hcl 설정(/etc/consul.d/consul.hcl) vim /etc/consul.d/consul.hcl [control1-consul.hcl] datacenter = "my-dc-1" data_dir = "/opt/consul" client_addr = "0.0.0.0" ui_config{ enab.. 더보기
[리눅스] consul 설치(install consul) consul 설치(install consul) consul ports table Use Default Ports DNS: The DNS server (TCP and UDP) 8600 HTTP: The HTTP API (TCP Only) 8500 HTTPS: The HTTPs API disabled (8501)* gRPC: The gRPC API disabled (8502)* LAN Serf: The Serf LAN port (TCP and UDP) 8301 Wan Serf: The Serf WAN port (TCP and UDP) 8302 server: Server RPC address (TCP Only) 8300 Sidecar Proxy Min: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최.. 더보기
[리눅스] vault로 ssh 인증(ssh authentication) 관리 vault로 ssh 인증(ssh authentication) 관리 테스트 환경 호스트 이름 아이피 역할 운영체제 비고 vault-server 192.168.0.51 vault server ubuntu 22.04 node1 192.168.0.61 ssh server ubuntu 22.04 node2 192.168.0.62 ssh client centos 7 vault data 삭제 systemctl stop vault rm -rf /opt/vault mkdir -pv /opt/vault/data chown -R vault.vault /opt/vault systemctl start vault systemctl status vault vault 구성 환경변수 설정 echo "export VAULT_ADDR=h.. 더보기
파일 디스크립터(File Descriptor) 및 설정(ulimit) 파일 디스크립터(File Descriptor) 및 설정(ulimit) 파일 디스크립터(File Descriptor)와 설정(ulimit)은 Unix 및 Unix 계열 운영 체제에서 중요한 개념입니다. 파일 디스크립터는 파일 또는 I/O 작업을 나타내는 정수 값이며, ulimit은 프로세스에 대한 자원 제한을 설정하는 명령어입니다. 파일 디스크립터란? 시스템으로부터 할당받은 파일을 대표하는 0이 아닌 정수값 프로세스에서 열린 파일의 목록을 관리하는 테이블의 인덱스 흔히 유닉스 시스템에서 모든 것을 파일이라고 한다. 일반적인 정규파일(Reglular File)에서부터 디렉토리(Directory), 소켓(Socket), 파이프(PIPE), 블록 디바이스, 캐릭터 디바이스 등등 모든 객체는 파일로써 관리된다. .. 더보기

728x90