본문 바로가기

2021/08

CentOS 8에서 Yum Repository 서버를 구축하는 방법 CentOS 8에서 Yum Repository 서버를 구축하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 Repository 서버 구축 epel 패키지 설치 yum install -y epel-release createrepo 패키지 설치 yum install -y yum-utils createrepo 웹 서버(apache) 패키지 설치 yum install -y httpd mod_ssl 리포지토리 디렉터리 만들기(yum 저장소) mkdir -p /apps/repo_root/repo mkdir -p /apps/repo_root/repo/centos/7/{extras,isos,os,updates} mkdir -p /apps/repo.. 더보기
[AWS] AWS CloudFront와 ALB에 SSL 적용 AWS CloudFront와 ALB에 SSL 적용 AWS Certificate Manager 버지니아 북부에 인증서 생성 Elastic Load Balancer 로드 밸런싱 > 로드밸런서 AWS CloudFront AWS Route 53 레코드 이름 유형 라우팅 값/트래픽 라우팅 대상 sangchul.kr A 단순 CF URL www.sangchul.kr CNAME 단순 Origin Domain origin.sangchul.kr A 단순 ALB URL 더보기
macOS(Big Sur)에 Packer 설치 macOS(Big Sur)에 Packer 설치 packer 다운로드 https://www.packer.io/downloads packer 설치 brew tap hashicorp/tap brew install hashicorp/tap/packer > brew tap hashicorp/tap Updating Homebrew... ==> Homebrew was updated to version 3.2.6 The changelog can be found at: https://github.com/Homebrew/brew/releases/tag/3.2.6 > brew install hashicorp/tap/packer ==> Installing packer from hashicorp/tap ==> Downloadi.. 더보기
[AWS] AWS Billing and Cost Management 콘솔에 대한 IAM 사용자 및 역할 액세스를 활성화 AWS Billing and Cost Management 콘솔에 대한 IAM 사용자 및 역할 액세스를 활성화 이미지 출처 : https://docs.aws.amazon.com/ko_kr/IAM/latest/UserGuide/tutorial_billing.html 결제 데이터에 대한 액세스 권한 활성화 결제 데이터에 대한 권한을 부여하는 IAM 정책 생성 사용자 계정 생성 사용자 그룹 계정 생성 및 구성 사용자 이름 사용자 그룹 이름 사용자를 멤버로 추가 FinanceManager BillingFullAccessGroup FinanceManager FinanceUser BillingViewAccessGroup FinanceUser 정책 생성 BillingFullAccess BillingViewAccess .. 더보기
PHP Redis 확장(Extension) 모듈을 설치하는 방법 PHP Redis 확장(Extension) 모듈을 설치하는 방법 php 버전 확인 $ php -version PHP 7.3.29 (cli) (built: Jul 7 2021 17:34:15) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.29, Copyright (c) 1999-2018, by Zend Technologies 1. Redis 서버 설치 확인 Redis 확장을 사용하기 전에 Redis 서버가 설치되어 있는지 확인해야 합니다. Redis 서버가 설치되어 있지 않은 경우, 먼저 Redis를 설치해야 합니다... 더보기
[리눅스] 레디스 설치 후 경고 메시지 처리(redis warning) 레디스 설치 후 경고 메시지 처리(redis warning) redis 로그 $ tail -f /var/log/redis/redis.log ... 30912:M 06 Aug 2021 11:33:33.677 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 30912:M 06 Aug 2021 11:33:33.677 # Server initialized 30912:M 06 Aug 2021 11:33:33.677 # WARNING overcommit_memory is set to 0! Background save may fai.. 더보기
[aws] Amazon CloudFront 파일 무효화 Amazon CloudFront 파일 무효화 aws 명령어 aws cloudfront create-invalidation --distribution-id distribution_ID --paths "/*" aws --profile test_profile --region ap-northeast-2 cloudfront create-invalidation --distribution-id 1234567ABCDEF --paths "/*" AWS 콘솔에서 CF 파일 무효화 AWS 콘솔 접속 > CloudFront > Distributions > distribution_ID 참고URL - 파일 무료화 : https://docs.aws.amazon.com/ko_kr/AmazonCloudFront/latest/Devel.. 더보기
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.. 더보기