분류 전체보기 썸네일형 리스트형 [draft] 우분투에 Nginx를 설치하고 Certbot을 사용하여 SSL 인증서를 설정하는 방법 우분투에 Nginx를 설치하고 Let's Encrypt를 사용하여 SSL 인증서를 설정하는 방법Nginx 설치우분투 패키지 관리자를 사용하여 Nginx를 설치합니다.sudo apt-get updatesudo apt-get install -y curl gnupg2 ca-certificates lsb-releasesudo apt-get install -y ubuntu-keyring apt-transport-httpscurl -s https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/nullecho "deb [signed-by=/usr/sha.. 더보기 [draft] 우분투에서 Certbot을 사용하여 Let's Encrypt SSL 인증서를 생성하는 방법 우분투에서 Certbot을 사용하여 Let's Encrypt SSL 인증서를 생성하는 방법Certbot 설치우분투 패키지 관리자를 사용하여 Certbot을 설치합니다.sudo apt-get updatesudo apt-get install -y certbotcertbot --version$ certbot --versioncertbot 1.21.0인증서 발급Certbot을 사용하여 SSL 인증서를 발급합니다. 도메인 이름은 실제 도메인으로 변경해야 합니다.sudo certbot certonly --standalone --agree-tos --email email@example.com -d testssl.example.com더보기---$ sudo certbot certonly --standalone --agr.. 더보기 [draft] Let's Encrypt(certbot) SSL 인증서를 발급하는 방법 Let's Encrypt(certbot) SSL 인증서를 발급하는 방법1. 개요HTTPS를 사용하면 사용자들의 개인정보 보호와 검색 엔진 최적화(SEO)에도 긍정적인 영향을 미칠 수 있습니다. 이번 포스트에서는 Let's Encrypt(certbot) SSL 인증서 발급 방식에 대해 알아보겠습니다.2. 사전 준비사항SSL 인증서를 발급하기 위해서는 DNS 레코드 설정이 완료된 도메인과 서버가 필요합니다. 또한, root 권한을 가진 SSH 접속이 가능해야 합니다.3. Certbot 설치Certbot은 Let's Encrypt SSL 인증서를 발급하기 위한 도구입니다. Certbot을 설치하기 위해서는 다음 명령어를 실행합니다.sudo apt-get updatesudo apt-get install cert.. 더보기 [draft] Let's Encrypt(certbot) SSL 인증서를 발급하는 방법 Let's Encrypt(certbot) SSL 인증서를 발급하는 방법Let's Encrypt는 무료로 SSL/TLS 인증서를 발급하는 공개 기관으로, Certbot라는 도구를 통해 간단하게 SSL 인증서를 발급할 수 있습니다.PluginAuthInstNotesChallenge types(and port)apacheYYApache를 사용하여 인증서 획득 및 설치를 자동화합니다.http-01(80)nginxYYNginx로 인증서 획득 및 설치를 자동화합니다.http-01 (80)webrootYN이미 실행 중인 웹 서버의 webroot 디렉토리에 기록하여 인증서를 얻습니다.http-01(80)standaloneYN"standalone" 웹 서버를 사용하여 인증서를 얻습니다. 포트 80을 사용할 수 있어야 합.. 더보기 [draft] PHP 8.1에서 MongoDB 확장 모듈을 업그레이드하는 방법 PHP 8.1에서 MongoDB 확장 모듈을 업그레이드하는 방법테스트 환경운영체제 버전 정보$ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)PHP 버전 정보 확인$ php --versionPHP 8.1.23 (cli) (built: Aug 30 2023 08:23:26) (NTS gcc x86_64)Copyright (c) The PHP GroupZend Engine v4.1.23, Copyright (c) Zend Technologies with Zend OPcache v8.1.23, Copyright (c), by Zend TechnologiesMongoDB 확장 모듈 버전 정보 확인php -i | egrep "MongoDB supp.. 더보기 [draft] 스크립트로 크론 작업을 추가하는 방법 스크립트로 크론 작업을 추가하는 방법Crontab 작업 등록환경 변수 CRON_JOB에 크론 작업을 정의CRON_JOB="* * * * * php /apps/artisan schedule:run >> /dev/null 2>&1"www-data 사용자의 크론 테이블에 추가echo "$CRON_JOB" | sudo crontab -u www-data -www-data 사용자의 크론 테이블 조회crontab -u www-data -l스크립트로 크론 작업을 추가vim scripts.sh#!/bin/bashCRON_JOB="* * * * * php /apps/artisan schedule:run >> /dev/null 2>&1"CRON_FILE="/etc/cron.d/my_cron_job"# 작업이 이미 있는지 .. 더보기 [draft] macOS에서 OpenJDK를 사용하여 JDK 17을 설치하는 방법 macOS에서 OpenJDK를 사용하여 JDK 17을 설치하는 방법1. Homebrew 설치터미널을 열고 다음 명령어를 사용하여 Homebrew를 설치합니다./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"2. OpenJDK 17 설치Homebrew를 사용하여 OpenJDK 17을 설치합니다.brew install openjdk@17$ brew install openjdk@17Running `brew update --auto-update`...==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sh.. 더보기 [draft] AWS CLI를 사용하여 EC2 리소스의 태그를 확인, 추가 및 삭제하는 방법 AWS CLI를 사용하여 EC2 리소스의 태그를 확인, 추가 및 삭제하는 방법AWS EC2 인스턴스 내에서 EC2 인스턴스의 메타데이터 엔드포인트를 통해 현재 인스턴스의 ID 조회curl -s http://169.254.169.254/latest/meta-data/instance-idEC2 리소스의 태그 확인aws ec2 describe-instances --instance-ids --query 'Reservations[*].Instances[*].[Tags]'를 실제 EC2 인스턴스의 ID로 바꿔주셔야 합니다.aws ec2 describe-instances \--instance-ids `curl -s http://169.254.169.254/latest/meta-data/instance-id` \--.. 더보기 이전 1 2 3 4 ··· 81 다음