본문 바로가기

리눅스

C276x260.fwebp.q85 [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.. 더보기
C276x260.fwebp.q85 [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.. 더보기
C276x260.fwebp.q85 [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을 사용할 수 있어야 합.. 더보기
C276x260.fwebp.q85 [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.. 더보기
C276x260.fwebp.q85 [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"# 작업이 이미 있는지 .. 더보기
C276x260.fwebp.q85 [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.. 더보기
C276x260.fwebp.q85 [draft] 맥(Mac)에서 AWS CLI를 최신 버전으로 설치하는 방법 맥(Mac)에서 AWS CLI를 최신 버전으로 설치하는 방법AWS Command Line Interface(AWS CLI) 설치curl -s "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"sudo installer -pkg AWSCLIV2.pkg -target /> sudo installer -pkg AWSCLIV2.pkg -target /Password:installer: Package name is AWS Command Line Interfaceinstaller: Installing at base path /installer: The install was successful.AWS CLI 경로 확인which aws> which aws/us.. 더보기
C276x260.fwebp.q85 [draft] glances 명령어 glances 명령어Glances는 리눅스 시스템 모니터링 도구로 시스템의 리소스 사용률, 네트워크 활동, 디스크 상태 등을 실시간으로 모니터링할 수 있습니다.테스트 환경운영체제 정보$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core) Glances를 설치하고 사용하는 방법은 다음과 같습니다.glances 설치sudo yum install epel-releasesudo yum install -y glancesglances 실행하기터미널에서 glances 명령을 실행합니다.Glances는 기본적으로 터미널 환경에서 실행되며, 실시간으로 시스템의 상태를 모니터링합니다.Glances는 키보드에서 다양한 명령을 사용할 수 있습니다. 아래는 일부 주요 명령.. 더보기