Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Nginx 실행

Start

Nginx does not start on its own. To get Nginx running, type:

sudo systemctl start nginx

Stop

sudo systemctl stop nginx

Restart

sudo systemctl restart nginx

Nginx Background 실행(reboot시 자동실행)

Before continuing, you will probably want to enable Nginx to start when your system boots. To do so, enter the following command:

sudo systemctl enable nginx

Nginx Background 실행취소

sudo systemctl disable nginx


Nginx 로그확인

루트 유저로 변경

sudo su

로그 폴더로 이동

cd /var/log/nginx

로그 확인

  • 접속로그: access.log

  • 에러로그 : error.log

실시간 확인

tail -f access.log

편집기 확인

vi access.log

실시간 모든 로그 확인

tail -f *.log

  • No labels