본문 바로가기

728x90

전체 글

원도우10 작업표시줄 뉴스 및 관심사(날씨) 위젯 설정 방법 원도우10 작업표시줄 뉴스 및 관심사(날씨) 위젯 설정 방법 작업표시줄 알림 영역에 갑자기 "날씨" 정보 아이콘이 나타났다. 뉴스 및 관심사 끄기 1. 작업표시줄에 오른쪽 마우스를 클릭 2. 뉴스 및 관심사 >> 끄기 더보기
JVM(JAVA) Option의 목록과 설명 JVM(JAVA) Option의 목록과 설명 테스트 환경 $ cat /etc/redhat-release Red Hat Enterprise Linux release 8.4 (Ootpa) $ getconf LONG_BIT 64 $ java --version openjdk 17.0.1 2021-10-19 OpenJDK Runtime Environment (build 17.0.1+12-39) OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing) 테스트 환경 메모리 사이즈(물리적 메모리=2GB) $ cat /proc/meminfo | grep MemTotal MemTotal: 2035832 kB 힙 사이즈(heap size) 초기 힙 크기 : 물리.. 더보기
[리눅스] 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.. 더보기

728x90