본문 바로가기

728x90

분류 전체보기

sshpass 명령어 sshpass 명령어 sshpass는 SSH 패스워드를 자동으로 제공하여 SSH 접속을 허용하는 명령어입니다. 일반적으로 스크립트나 자동화 작업에서 사용되며 SSH 패스워드를 직접 입력하지 않고 SSH 접속을 자동화할 때 유용합니다. sshpass 설치 CentOS/RHEL sudo yum install -y sshpass Debian/Ubuntu sudo apt-get install sshpass 기본 구문 sshpass -p 'PASSWORD' ssh USER@HOST PASSWORD: SSH 패스워드 USER: SSH로 접속할 사용자 이름 HOST: SSH로 접속할 호스트 주소 또는 IP 주소 주요 옵션 sshpass의 일부 주요 옵션은 다음과 같습니다: -p 'PASSWORD': SSH 패스워드를.. 더보기
우분투에서 Ghost 블로그를 삭제하는 방법 우분투에서 Ghost 블로그를 삭제하는 방법 작업 디렉토리로 이동 cd /var/www/ghost Ghost 삭제 ghost uninstall (또는) echo '' | ghost uninstall $ ghost uninstall Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time. https://careers.ghost.org WARNING: Running this command will delete all of your themes, images, data, any files related to this Ghost instance, and the contents of this folder! There is no .. 더보기
우분투에서 Ghost 블로그를 설치하는 방법 우분투에서 Ghost 블로그를 설치하는 방법 Ghost는 Node.js로 작성된 오픈 소스 블로그 플랫폼입니다. Nginx 및 MySQL과 함께 Ghost를 설치합니다. 전제 조건 공식적으로 권장되는 프로덕션 설치에는 다음 스택이 필요합니다. Ubuntu 20.04 또는 Ubuntu 22.04 NGINX (SSL을 위한 최소 1.9.5) 지원되는 Node.js 버전 MySQL 8 Systemd 적어도 1GB 메모리가 있는 서버 등록된 도메인 이름 테스트 환경 운영체제 버전 정보 $ lsb_release -d Description: Ubuntu 22.04.2 LTS 1. Nginx 설치 및 설정 sudo ln -s /etc/nginx/conf.d /etc/nginx/sites-available sudo l.. 더보기
Amazon EC2 t4g.small 인스턴스에서 Nginx와 PHP-FPM을 연동하여 테스트 페이지를 설정하는 방법 Amazon EC2 t4g.small 인스턴스에서 Nginx와 PHP-FPM을 연동하여 테스트 페이지를 설정하는 방법 1. Nginx 및 PHP-FPM 설치 2. PHP-FPM 구성 파일 수정 sudo mkdir /var/log/php-fpm php-fpm.conf 파일 설정 sudo vim /etc/php/8.1/fpm/php-fpm.conf [global] pid = /var/run/php/php-fpm.pid error_log = /var/log/php-fpm/error.log include = /etc/php/8.1/fpm/pool.d/*.conf www.conf 파일 설정 sudo vim /etc/php/8.1/fpm/pool.d/www.conf [www] user = www-data group.. 더보기
Amazon EC2 t4g.small 인스턴스에서 PHP-FPM을 설치하는 방법 Amazon EC2 t4g.small 인스턴스에서 PHP-FPM을 설치하는 방법 테스트 환경 운영 체제 버전 정보 확인 $ lsb_release -d Description:Ubuntu 22.04.3 LTS 운영 체제의 아키텍처 확인(Arm 기반 AWS Graviton 프로세서 사용) $ uname -m aarch64 운영 체제의 비트 수 $ getconf LONG_BIT 64 PHP-FPM 설치 필수 구성 요소 설치 sudo apt-get install -y zlib1g-dev software-properties-common sudo apt-get update PPA(Personal Package Archive) 추가 sudo add-apt-repository -y ppa:ondrej/php ATP 패키.. 더보기
Amazon EC2 t4g.small 인스턴스에서 MySQL를 설치하는 방법 Amazon EC2 t4g.small 인스턴스에서 MySQL를 설치하는 방법 테스트 환경 운영 체제 버전 정보 확인 $ lsb_release -d Description:Ubuntu 22.04.3 LTS 운영 체제의 아키텍처 확인(Arm 기반 AWS Graviton 프로세서 사용) $ uname -m aarch64 운영 체제의 비트 수 $ getconf LONG_BIT 64 MySQL 설치 Shell에서 mysql 계정 및 그룹 생성 sudo groupadd -g 28 mysql sudo useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 28 -g mysql mysql $ egrep mysql /etc/passwd /etc/group /e.. 더보기
Amazon EC2 t4g.small 인스턴스에서 NGINX를 설치하는 방법 Amazon EC2 t4g.small 인스턴스에서 NGINX를 설치하는 방법 테스트 환경 운영 체제 버전 정보 확인 $ lsb_release -d Description:Ubuntu 22.04.3 LTS 운영 체제의 아키텍처 확인(Arm 기반 AWS Graviton 프로세서 사용) $ uname -m aarch64 운영 체제의 비트 수 $ getconf LONG_BIT 64 NGINX 설치 필수 구성 요소 설치 sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring APT가 패키지의 신뢰성을 확인할 수 있도록 공식 NGINX 서명 키를 가져옵니다. curl -fsSL https://nginx.org/keys/nginx_signing... 더보기
Amazon t3a.medium과 t4g.medium의 비교 Amazon t3a.medium과 t4g.medium의 비교 AWS t3a.medium과 t4g.medium은 모두 2 vCPU와 4 GiB의 메모리를 제공하는 중형 인스턴스 유형입니다. 두 인스턴스 유형 사이에는 몇 가지 주요 차이점 기능 t3a.medium t4g.medium CPU 성능 보통 우수 시간당 가격 비싸 저렴 CPU 사용량이 많은 애플리케이션에 적합 아니오 예 CPU 사용량이 적은 애플리케이션에 적합 예 예 CPU 성능 t4g.medium은 t3a.medium보다 CPU 성능이 우수합니다. t4g.medium은 AWS Graviton2 프로세서를 사용하며, t3a.medium은 AMD EPYC 프로세서를 사용합니다. Graviton2 프로세서는 EPYC 프로세서보다 더 많은 코어와 스레드.. 더보기

728x90