본문 바로가기

728x90

전체 글

[리눅스] 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), 블록 디바이스, 캐릭터 디바이스 등등 모든 객체는 파일로써 관리된다. .. 더보기
docker nettools docker nettools docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest >docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest root@nettools:~$ date Wed Jan 25 06:31:23 UTC 2023 docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest >docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest roo.. 더보기
[리눅스] centos에 hashicorp vault를 설치하는 방법(installing vault) centos에 hashicorp vault를 설치하는 방법(installing vault) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) vault 설치 yum-config-manager 패키지 설치 sudo yum install -y yum-utils 공식 HashiCorp Linux 리포지토리 추가 sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo vault 설치 sudo yum -y install vault $ sudo yum -y install vault ... Running transaction check R.. 더보기
[리눅스] SSH 인증을 위한 SSH 인증서 구성 및 설정 방법 SSH 인증을 위한 SSH 인증서 구성 및 설정 방법(certificate authority) 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 $ yum info openssh-server Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:35:43 ago on Wed Jan 25 00:03:26 2023. Installed Packages Name : openssh-server Version : 8.0p1 Release : 10.el8 Architecture : x86_64 Size : 1.0 M Source : openssh-8.0p1-10.el8... 더보기

728x90