1. Node.js 및 npm 설치

sudo apt install nodejs npm

1.1. 설치 확인

node -v
npm -v

2. Nginx 설정

sudo apt update
sudo apt install nginx

3. default 파일 삭제 (권장)

/etc/nginx/sites-available/geugol.conf
/etc/nginx/sites-enabled/geugol.conf
server {
  listen 80; //포트
  location / {
    root   /home/geugol-react/build; //빌드경로
    index  index.html index.htm;
    try_files $uri $uri/ /index.html;
  }
}