목록ubuntu (90)
변군이글루(Mirror)

sudo 명령어 sudo는 리눅스와 유닉스 시스템에서 특정 명령어를 슈퍼유저(root) 권한으로 실행할 때 사용하는 명령어입니다. 슈퍼유저 권한은 시스템 전반적인 변경이나 관리 작업을 수행하기 위해 필요한 권한입니다. sudo를 사용하여 일시적으로 슈퍼유저 권한을 얻을 수 있으며, 이를 통해 보안과 시스템 안정성을 유지할 수 있습니다. 기본 사용법 sudo 명령어는 다음과 같이 사용합니다. sudo 명령어 예를 들어, 파일을 root 권한으로 편집하려면 다음과 같이 사용할 수 있습니다. sudo nano /etc/config.txt 사용 예시 패스워드 입력 sudo를 사용할 때는 일반적으로 현재 사용자의 패스워드를 입력해야 합니다. 특정 사용자로 실행 sudo를 사용하여 특정 사용자로 명령어를 실행할 수..

우분투 맨페이지 저장(Ubuntu Manpage Repository) Home page : https://manpages.ubuntu.com/ Ubuntu Manpage Repository Provided by: sed_4.8-1ubuntu2_amd64 : https://manpages.ubuntu.com/manpages/kinetic/en/man1/sed.1.html

What Is My IP? bind utilities centos yum install -y bind-utils ubuntu apt-get install -y bind9-dnsutils Public IP Address dig @resolver1.opendns.com myip.opendns.com +short Private IP Address ip route get 1.2.3.4 | awk '{ print $7 }' | egrep -v '^$'

traefik을 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy) docker-compose.yml 기본 예제 docker-compose.yml 편집 vim docker-compose.yml version: "3.3" services: traefik: image: "traefik:v2.9" container_name: "traefik" command: #- "--log.level=DEBUG" - "--api.insecure=true" - "--providers.docker=true" - "--providers.docker.exposedbydefault=false" - "--entrypoints.web.address=:80" ports: - "80:80" - "..

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 사..

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/..

우분투에 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: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최소 ..