From 8bf5d10be71d348e5fd4ebd6b971e703aba1a5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 23 Feb 2026 13:07:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[academy]=20Nginx=20=EB=B0=B1=EA=B3=BC?= =?UTF-8?q?=EC=82=AC=EC=A0=84=20SVG=20=EC=9D=B4=EB=AF=B8=EC=A7=80=201~4?= =?UTF-8?q?=EB=B2=88=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 1.svg: Nginx 히어로 이미지 (로고, 네트워크 배경) - 2.svg: 웹 서버 = 접수 창구 비유 다이어그램 - 3.svg: Apache vs Nginx 비교 인포그래픽 - 4.svg: Nginx 설정 계층 구조 (마트료시카) --- .../images/academy/nginx-encyclopedia/1.svg | 88 ++++++++++ .../images/academy/nginx-encyclopedia/2.svg | 161 +++++++++++++++++ .../images/academy/nginx-encyclopedia/3.svg | 165 ++++++++++++++++++ .../images/academy/nginx-encyclopedia/4.svg | 153 ++++++++++++++++ 4 files changed, 567 insertions(+) create mode 100644 public/images/academy/nginx-encyclopedia/1.svg create mode 100644 public/images/academy/nginx-encyclopedia/2.svg create mode 100644 public/images/academy/nginx-encyclopedia/3.svg create mode 100644 public/images/academy/nginx-encyclopedia/4.svg diff --git a/public/images/academy/nginx-encyclopedia/1.svg b/public/images/academy/nginx-encyclopedia/1.svg new file mode 100644 index 00000000..0948b0d5 --- /dev/null +++ b/public/images/academy/nginx-encyclopedia/1.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + N + + + + + + + + + + Nginx 백과사전 + + + + + + 기초부터 실전까지 + + + + \ No newline at end of file diff --git a/public/images/academy/nginx-encyclopedia/2.svg b/public/images/academy/nginx-encyclopedia/2.svg new file mode 100644 index 00000000..d8ddc71c --- /dev/null +++ b/public/images/academy/nginx-encyclopedia/2.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + 웹 서버 = 접수 창구 + + + + 클라이언트 + + + + + + + + + + 요청 1 + + + + + + + + + + + 요청 2 + + + + + + + + + + + 요청 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 웹 서버 + (Nginx) + + + 요청을 받아 + 적절한 곳으로 + 안내합니다 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 정적 파일 창고 + HTML, CSS, JS, 이미지 + 직접 꺼내서 전달 + + + + + + + + + + + + + + + PHP-FPM 처리실 + 동적 요청 처리 + Laravel 앱 실행 + + + + + + + + + + + 보안 검사실 + SSL/TLS 암호화 + 접근 제어, 방화벽 + + + 클라이언트 요청 → 웹 서버(접수 창구) → 적절한 처리 부서로 분배 + \ No newline at end of file diff --git a/public/images/academy/nginx-encyclopedia/3.svg b/public/images/academy/nginx-encyclopedia/3.svg new file mode 100644 index 00000000..ee7034d4 --- /dev/null +++ b/public/images/academy/nginx-encyclopedia/3.svg @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + Apache vs Nginx 비교 + + + + + VS + + + + + Apache + + + + 프로세스 기반 + + + 요청마다 새 프로세스 생성 + + + + + 요청1 + + + + 프로세스 1 + + + + + + 요청2 + + + + 프로세스 2 + + + + + 요청3 + + + + 프로세스 3 + + + + + 요청4 + + + + 프로세스 4 + + + + + + 메모리 사용량 + + + 높음 (84%) + + + * 동시 접속 증가 시 메모리 급증 + * .htaccess 디렉토리별 설정 + + + + + Nginx + + + + 이벤트 기반 + + + 하나의 워커가 여러 요청 처리 + + + + + 워커 + 프로세스 + + + + + + 요청 1 + + + + + + 요청 2 + + + + + + 요청 3 + + + + + + 요청 4 + + + + + + 요청 5 + + + + + + 요청 6 + + + + 메모리 사용량 + + + 낮음 (30%) + + + * 동시 접속 증가에도 안정적 + * 비동기 이벤트 루프 아키텍처 + + + + + SAM은 Nginx를 선택 + + + + + \ No newline at end of file diff --git a/public/images/academy/nginx-encyclopedia/4.svg b/public/images/academy/nginx-encyclopedia/4.svg new file mode 100644 index 00000000..6f48c0b4 --- /dev/null +++ b/public/images/academy/nginx-encyclopedia/4.svg @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + Nginx 설정 계층 구조 + + + + + + + + + + main + + 전체 설정 (worker 수, 로그 경로) + + + + + events + 연결 수 설정 + worker_connections + + + + + + + http + HTTP 프로토콜 설정 (gzip, MIME 타입) + + + + + server + 도메인별 가상 호스트 (listen, server_name) + + + + + + location + + 경로별 처리 규칙 + + + + + location / { ... } + + + + location /api { ... } + + + + location ~* \.jpg$ { } + + + + + + location + + 다른 경로 규칙 + + + + location /static { } + + + + location /admin { } + + + + + + 비유 + + + + + 건물 = main + + + 층 = http + + + 호 = server + + + 방 = loc + + + + + + + + + + + + 건물 + + + + + + + + + + + 바깥에서 안쪽으로 + 설정이 상속됩니다 + + + + + + main + + events + + http + + server + + location + + \ No newline at end of file