nginx
설치
sudo apt-get update
sudo apt-get install nginx1. 서비스 목록을 확인
- service --status-all|grep +
2. 방화벽 확인
- sudo ufw app list
- sudo ufw allow 'Nginx HTTP'
- sudo ufw status
3. 서비스되는지 확인
- systemctl status nginx
4. 서비스 정지
- sudo systemctl stop nginx
- stop 외에 start, restart, reload, disable, enable 명령어가 있다.
5. cd /var/www/html => build 된 project를 deploy하면 된다.
6. 로그 확인
- /var/log/nginx/access.log 혹은 error.log간단한 설정 방법
Last updated