Skip to Content
Suffering builds character
아카이브8.Nginx설치1. Nginx 설치

1. Nginx 설치

다음의 링크를 통해 Nginx 설치 진행

Windows 사용자
Nginx 설치

Mac 사용자
Homebrew를 사용할 경우

1. Nginx 설치 및 실행 확인

Nginx 버전 확인

terminal
nginx -v nginx version: nginx/1.28.0

Nginx 서버 실행(Linux)

terminal
nginx

→ Windows에서는 Nginx 폴더 내에서 실행

Nginx 서비스 동작 확인(Windows)

terminal
netstat -ano | findstr ":80" # 혹은 tasklist | grep nginx # 실행 결과 # nginx.exe 4208 Console 1 9,376 K # nginx.exe 5144 Console 1 9,576 K

Nginx 서비스 동작 확인(Mac)

terminal
lsof -i | grep nginx

Nginx 서비스 동작 확인(Linux)

terminal
ps -ef | grep nginx # 실행 결과 root 3480 1 0 10:15 ? 00:00:00 nginx: master process nginx nginx 3481 3480 0 10:15 ? 00:00:00 nginx: worker process

Nginx가 정상적으로 실행되었을 경우 master와 worker 프로세스가 각각 한 개 이상 실행되고 있음

Last updated on