본문 바로가기

728x90

분류 전체보기

우분투에서 UFW를 사용하여 방화벽 설정하는 방법 우분투에서 UFW(Uncomplicated firewall)를 사용하여 방화벽 설정하는 방법 우분투에서 방화벽 설정을 하는 간편한 도구 중 하나로 Uncomplicated Firewall(UFW)를 사용할 수 있습니다. UFW는 방화벽 규칙을 쉽게 구성하고 관리할 수 있게 해주는 프론트엔드 도구입니다. 1. UFW 설치 UFW가 시스템에 설치합니다. sudo apt update sudo apt install ufw 2. 규칙 확인 현재 UFW 규칙을 확인합니다. sudo ufw status $ sudo ufw status Status: inactive 설정된 규칙 목록이 표시됩니다. 3. UFW 활성화 UFW를 활성화합니다. sudo ufw enable $ sudo ufw enable Command ma.. 더보기
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... 더보기

728x90