오픈스택
close
프로필 배경
프로필 로고

오픈스택

  • 분류 전체보기 (118) N
    • Domain Knowledge (1)
      • OS (0)
      • Network (1)
    • Server (4)
      • Rocky Linux (4)
    • 시리즈 (62)
      • Linux 기초 다지기 2023 (개편 예정) -.. (61)
      • Linux 기초 다지기 2025 (개편) - 시리.. (0)
      • 나만의 웹 사이트 만들기 - 시리즈 (1)
    • OpenStack (0)
    • Web (14)
      • HTML (9)
      • NGINX (5)
    • C++ (0)
    • Cloud (8)
      • AWS (1)
      • Azure (4)
      • GCP (1)
      • NCloud (1)
      • NHN Cloud (1)
    • Container (2)
      • Docker (2)
    • Orchestration (3)
      • Kubernetes (3)
    • IaC (2)
      • Ansible (2)
      • Crossplane (0)
      • Terraform (0)
      • CloudFormation (0)
    • CICD (6)
      • GitLab (4)
      • Nexus (2)
    • DB (2)
      • MySQL (2)
    • Security (1)
      • 암호 (1)
    • AI (1)
      • Cursor AI (1)
    • Tools (3)
    • 기타 (9) N
      • 자격증 (6) N
      • 토픽 (1)
      • 생각 (2)
  • 홈
  • 태그
  • 방명록
NGINX - 05. nginx.conf access log, error log 설정

NGINX - 05. nginx.conf access log, error log 설정

nginx log 설정/etc/nginx/nginx.conf  error_log 지시문 문법컨텍스트 위치: main, http, mail, stream, server, locationerror_log filepath [level];ex)- error_log /var/log/nginx/error.log;- error_log /var/log/nginx/error.log debug; 로그 레벨에는 debug, info, notice, warn, error, crit, alert, emerg 가 있다. error_log 지시문은 http, mail, stream, server, location 와 같은 컨텍스트 수준에서 설정이 가능하다.  컨텍스트 수준 로그 설정 nginx 의 404 error 를 발생시킨 후..

  • format_list_bulleted Web/NGINX
  • · 2025. 3. 23.
  • textsms
NGINX - 04. nginx.conf 의 worker_processes 설정

NGINX - 04. nginx.conf 의 worker_processes 설정

worker_processes /etc/nginx/nginx.conf worker_processes 지시문 문법컨텍스트 위치: mainworker_processes number | auto;ex)- worker_processes 1;- worker_processes auto; 필자의 구성은 auto 이다.따라서, 리눅스의 CPU 코어 수에 맞게 자동으로 worker_processes 갯수가 생성된다. 단순하게 worker_processes 갯수가 많다고 성능이 향상되는 것은 아니다.하드웨어의 CPU 코어 수에 맞게 설정해줘야 한다. 그 이유는 nginx 는 event drive 방식으로 사용자의 HTTP/HTTPS 요청을 처리하는데,해당 요청을 worker_process 간 효율적으로 분산한다. 따라서,..

  • format_list_bulleted Web/NGINX
  • · 2025. 3. 23.
  • textsms
NGINX - 03. nginx.conf 지시문 구조

NGINX - 03. nginx.conf 지시문 구조

지시문(directive): nginx.conf 파일은 지시문으로 제어되는 모듈로 구성되어 있다. 지시문 종류단순 지시문: 공백으로 구분된 이름과 매개변수로 구성되고, 세미콜론으로 끝난다. EX) 블록 지시문: 블록 지시문은 단순 지시문과 구조가 동일하지만, 세미콜론이 아닌 중괄호로 끝난다. 블록 지시문 안에 다른 지시문을 가질 수 있는 경우 컨텍스트라고 한다. EX) events, http, server, location

  • format_list_bulleted Web/NGINX
  • · 2025. 3. 23.
  • textsms
NGINX - 02. nginx.conf 의 지시문 user 설정이 디폴트 설정 nobody 가 아닌 nginx 으로 설정되어 있는 이유에 대하여

NGINX - 02. nginx.conf 의 지시문 user 설정이 디폴트 설정 nobody 가 아닌 nginx 으로 설정되어 있는 이유에 대하여

/etc/nginx/nginx.conf (v1.14.1 기준) | user 지시문(Directives)  Syntax : user user_id | group_id 설명: 워커 프로세스(worker process) 실행 권한을 설정할 수 있다. group_id 생략 시, user_id 값과 동일하게 설정된다.디폴트 설정은 nobody 이다. 그러나 우리가 이전 편에서 설치한 NGINX v1.14.1 설정 값은 user nginx; 이다.디폴트가 nobody 으로 설정되어 있지 않았다.  NGINX - 01. NGINX 설치 Version(Rocky 8.10, NGINX 1.14.1)NGINX 설치dnf install -y nginx  NGINX 버전 확인nginx -v  NGINX 자동실행systemct..

  • format_list_bulleted Web/NGINX
  • · 2025. 3. 19.
  • textsms
NGINX - 01. NGINX 설치 Version(Rocky 8.10, NGINX 1.14.1)

NGINX - 01. NGINX 설치 Version(Rocky 8.10, NGINX 1.14.1)

NGINX 설치dnf install -y nginx  NGINX 버전 확인nginx -v  NGINX 자동실행systemctl enable --now nginx  실행확인systemctl status nginx 리스너 확인netstat -lnpt   NGINX 설정파일 위치- /etc/nginx/nginx.conf  로그파일 위치- /var/log/nginx 기본 HTML 디렉터리- /usr/share/nginx/html

  • format_list_bulleted Web/NGINX
  • · 2025. 3. 18.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (118) N
    • Domain Knowledge (1)
      • OS (0)
      • Network (1)
    • Server (4)
      • Rocky Linux (4)
    • 시리즈 (62)
      • Linux 기초 다지기 2023 (개편 예정) -.. (61)
      • Linux 기초 다지기 2025 (개편) - 시리.. (0)
      • 나만의 웹 사이트 만들기 - 시리즈 (1)
    • OpenStack (0)
    • Web (14)
      • HTML (9)
      • NGINX (5)
    • C++ (0)
    • Cloud (8)
      • AWS (1)
      • Azure (4)
      • GCP (1)
      • NCloud (1)
      • NHN Cloud (1)
    • Container (2)
      • Docker (2)
    • Orchestration (3)
      • Kubernetes (3)
    • IaC (2)
      • Ansible (2)
      • Crossplane (0)
      • Terraform (0)
      • CloudFormation (0)
    • CICD (6)
      • GitLab (4)
      • Nexus (2)
    • DB (2)
      • MySQL (2)
    • Security (1)
      • 암호 (1)
    • AI (1)
      • Cursor AI (1)
    • Tools (3)
    • 기타 (9) N
      • 자격증 (6) N
      • 토픽 (1)
      • 생각 (2)
최근 글
인기 글
최근 댓글
태그
  • #azure
  • #nginx.conf
  • #nginx
  • #Kubernetes
  • #web
  • #gitlab
  • #K8s
  • #Linux
  • #docker
  • #Cloud
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바