1. 시스템 패키지 업데이트
sudo apt update
sudo apt upgrade -y
2. nginx 설치
sudo apt install nginx
3. nginx 서비스 시작
sudo systemctl start nginx
4. nginx 서비스 자동 시작
sudo systemctl enable nginx
5. IP주소로 접속하여 확인하기
※ nginx 상태 확인
sudo systemctl status nginx
'Nginx' 카테고리의 다른 글
Nginx를 이용하여 다른 서버로 포워드하는 방법(리버스프록시) (0) | 2024.12.04 |
---|---|
Nginx에서 정적 파일 연결하기 (0) | 2024.11.22 |