기본적으로 Nginx conf 파일은 다음 경우에 따라 경로가 나뉠 수 있다.
컴파일을 통해 설치한 경우
/usr/local/nginx/conf
apt-get 을 통해 Ubuntu에 설치한 경우
/etc/nginx
설치 방법이나 OS에 따라 이 경로는 바뀔 수 있기 때문에 다음과 같은 명령어를 사용하여 찾아보자.
find / -name "nginx.conf"
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 80;
location / {
root html;
index index.html index.htm;
}
}
}
이 구조에서 한 단락씩 살펴보도록 하자.
worker_processes 1;
에 해당하는 구문이다.