전체 글 썸네일형 리스트형 ps kill 명령어 ps kill 명령어httpd 프로세스를 찾아 강제 종료ps ax | grep -v grep | grep httpd | awk '{print $1}' | sort -u | xargs kill -9pkill 명령어pkill -9 -f httpd 더보기 GitHub Actions를 사용해 Spring Boot 애플리케이션을 빌드하고 Docker 이미지를 생성하여 Docker Hub에 업로드하는 방법 GitHub Actions를 사용해 Spring Boot 애플리케이션을 빌드하고 Docker 이미지를 생성하여 Docker Hub에 업로드하는 방법GitHub Actions 워크플로우전체 워크플로우더보기---name: Deploy Spring Boot Applicationon: push: branches: - mainenv: AWS_REGION: us-east-1 SECURITY_GROUP_ID: sg-07f3 CONTAINER_BASE_DIR: "/app/docker-container" CONTAINER_LOG_DIR: "$CONTAINER_BASE_DIR/logs" APPLICATION_PORT: 8080 DOCKER_REPO: ${{ vars.DOCKER_REPO }} .. 더보기 우분투에서 최신 버전의 Docker를 설치하는 방법 우분투 24.04 LTS에서 최신 버전의 Docker를 설치하는 방법Docker 공식 설치 가이드 : Install using the convenience script테스트 환경$ sudo lsb_release -dDescription: Ubuntu 24.04.1 LTSDocker 설치Docker 설치 스크립트 다운로드curl -fsSL https://get.docker.com -o get-docker.shchmod +x get-docker.sh설치 내용을 미리 확인 (실제 설치는 아님)./get-docker.sh --dry-run# Executing docker install script, commit: 4c94a56999e10efcf48c5b8e3f6afea464f9108eapt-get -qq .. 더보기 PHP-FPM Pool을 구성하는 방법 PHP-FPM Pool을 구성하는 방법우분투 24.04에서 CPU 개수, 메모리 용량, PHP 프로세스당 메모리 용량을 자동으로 수집하고 이를 기반으로 PHP-FPM 풀 설정을 계산하는 Bash 스크립트입니다.PHP-FPM Pool 설정 파일 위치PHP-FPM의 Pool 설정은 /etc/php/{PHP_VERSION}/fpm/pool.d/ 디렉토리 내의 개별 파일로 관리됩니다. 기본적으로 www.conf라는 파일이 존재하지만 여러 개의 Pool을 설정할 수 있습니다.cd /etc/php/8.3/fpm/pool.d/기본 Pool 설정 파일 수정www.conf 파일을 편집하여 기본 Pool 설정을 수정할 수 있습니다.sudo vim /etc/php/8.3/fpm/pool.d/www.conf주요 설정 항목ww.. 더보기 AWS 보안 그룹에 GitHub Actions IP 추가 및 삭제하는 방법 AWS 보안 그룹에 GitHub Actions IP 추가 및 삭제하는 방법AWS EC2 인스턴스에 GitHub Actions로 배포 시 보안을 강화하기 위해 배포 전에는 GitHub Actions의 IP를 보안 그룹에 추가하고 배포 후에는 해당 IP를 보안 그룹에서 삭제하는 방법입니다.GitHub Actions 워크플로우전체 워크플로우더보기---name: Remote SSH Command for Deployon: push: branches: - mainenv: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_RE.. 더보기 SecureCRT 클라이언트에서 AWS EC2 서버에 SSH 접속 시 오류가 발생하는 경우 SecureCRT 클라이언트에서 AWS EC2 서버에 SSH 접속 시 오류가 발생하는 경우SecureCRT 클라이언트에서 AWS EC2(우분투 24.04) 서버에 SSH 접속 시 Public-key authentication with the server for user ubuntu failed 오류가 발생하는 경우에 문제를 해결할 수 있습니다.테스트 환경클라이언트 운영체제 : Windows 11클라이언트 프로그램 : SecureCRT 8.3.2서버 운영체제 : Ubuntu 24.04 LTS서버 프로그램$ sshd -VOpenSSH_9.6p1 Ubuntu-3ubuntu13.5, OpenSSL 3.0.13 30 Jan 2024SecureCRT 접속 실패 오류Public-key authentication wi.. 더보기 Spring Boot 프로젝트를 GitHub Actions를 이용해 배포 자동화하는 방법 Spring Boot 프로젝트를 GitHub Actions를 이용해 배포 자동화하는 방법GitHub Actions와 Gradle을 활용하여 Spring Boot 프로젝트를 AWS EC2 인스턴스에 자동으로 배포하는 방법입니다.1. AWS EC2 서버 준비EC2 인스턴스 생성 및 보안 그룹 설정SSH(포트 22) 및 Spring Boot 애플리케이션 포트(예: 8080) 열기필수 소프트웨어 설치Java 설치sudo mkdir -p /appcd /usr/local/srcwget -q --show-progress https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gztar -xf jdk-21_linux-x64_bin.tar.gzsudo m.. 더보기 [url] GitHub Actions 설명서 GitHub Actions 설명서GitHub Docs : GitHub Actions 설명서GitHub Actions 이해워크플로vim .github/workflows/deploy.ymlname: Github Actions 실행on: push: branches: - mainjobs: example-job: runs-on: ubuntu-latest steps: - name: Hello World run: echo "Hello World" - name: 여러 명령어 실행 run: | echo "command #1" echo "command #2"비밀 저장vim .github/workflows/deploy.y.. 더보기 이전 1 2 3 4 5 6 ··· 277 다음