본문 바로가기

728x90

전체 글

[리눅스] SWAP Memory SWAP Memory SWAP - 시스템에 메모리가 부족할 경우 하드디스크의 일부 공간을 활용하여 확장된 RAM(물리 메모리)처럼 사용할 수 있는 기술. 보통의 경우 RAM(물리 메모리)이 부족해지면 버퍼/캐시 영역을 프로세스 메모리로 재할당하여 사용합니다. 그러나 버퍼/캐시 영역이 반환되지 않으면 SWAP 영역을 사용합니다. SWAP 영역 확인하는 방법 - 현재 시스템에서는 SWAP 영역을 비활성화한 상태임. - "Swap: 0B 0B 0B"으로 출력된 경우 SWAP 영역이 비활성화되어 있는 상태입니다. $ free -h total used free shared buff/cache available Mem: 3.8G 3.2G 233M 18M 403M 396M Swap: 0B 0B 0B VmSwap 값이.. 더보기
[리눅스] GitLab 컨테이너 레지스트리 사용하기 GitLab 컨테이너 레지스트리 사용하기 docker login docker login registry.binddns.com $ docker login registry.binddns.com Username: binddns Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded docker build $ docker build -t r.. 더보기
[리눅스] GitLab root 초기 비밀번호 GitLab root 초기 비밀번호 - GitLab Version : 14.4.2 gitlab 로그 중간에 출력 $ docker-compose logs -f ... gitlab | Notes: gitlab | Default admin account has been configured with following details: gitlab | Username: root gitlab | Password: You didn't opt-in to print initial root password to STDOUT. gitlab | Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure.. 더보기
NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 모든 연결 제한(나머지 요청 301 리다이렉트) location / { return 301 https://sangchul.kr; } 특정 파일이나 디렉터리(health_check.html 파일) 접근 허용 location ~ ^/health_check.html { #access_log off; access_log /var/log/nginx/elb-healthchecker-access.log main; } default.conf 파일 $ vim /etc/nginx/conf.d/default.conf # Settings for a HTTP enabled server. server { listen 80; server_name _; root /usr/.. 더보기
Amazon Linux 2에서 goofys 설치 및 S3 마운트하기 Amazon Linux 2에서 goofys 설치 및 S3 마운트하기 Golang fuse 설치 yum install -y golang fuse $ yum install -y golang fuse ========================================================================== Package Arch Version ========================================================================== Installing: fuse x86_64 2.9.2-11.amzn2 golang x86_64 1.15.12-1.amzn2.0.1 Installing for dependencies: apr x86_64 1.6.3.. 더보기
AWS S3 버킷의 액세스를 IP 주소로 제한하는 방법 AWS S3 버킷의 액세스를 IP 주소로 제한하는 방법 AWS S3 버킷의 액세스를 IP 주소로 특정 IP 주소만 S3 버킷에 접근할 수 있으며, 다른 IP 주소로부터의 액세스는 차단됩니다. 참고: 이 방법은 AWS 계정의 액세스 제어를 설정하므로 꼭 필요한 경우에만 사용해야 하며, 신중하게 구성해야 합니다. AWS Management Console을 통한 방법 1. AWS Management Console에 로그인합니다. 2. S3 콘솔로 이동합니다. 3. 액세스를 제한하려는 버킷을 선택합니다. 4. "속성" 탭을 선택합니다. 5. "Bucket Policy" 옵션을 선택합니다. 6. 다음과 같은 형식의 정책을 추가합니다. 여기서 111.111.111.111은 허용하려는 IP 주소입니다. 버킷 정책 I.. 더보기
쿠버네티스 인그레스 컨트롤러 설치 쿠버네티스(kubernetes) 인그레스 컨트롤러 설치 : 쿠버네티스 인그레스 컨트롤러 설치 https://kubernetes.io/ko/docs/concepts/services-networking/ingress-controllers/ 베어메탈(Bare-metal) NodePort 사용 kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/baremetal/deploy.yaml 또는 wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static.. 더보기
TreeSize Free 유틸리티 TreeSize Free 유틸리티 디렉터리 크기를 빠르게 스캔하고 디스크 공간을 많이 사용하는 디렉터리를 찾는 유틸리티 https://www.jam-software.com/treesize_free/ 로컬 디스크(C:) 용량 확인 C드라이브에서 아이폰 백업 파일이 대략 40GB를 사용하고 있었다. ㅠㅠ 더보기

728x90