본문 바로가기
카테고리 없음

ubuntu 24.04 Nginx, Https

by 광고(주) 2026. 1. 22.
반응형

1️⃣ 기본 업데이트

sudo apt update && sudo apt upgrade -y

2️⃣ Nginx 설치

sudo apt install nginx -y
sudo systemctl status nginx

설정파일 수정

#설정파일 수정
vi /etc/nginx/nginx.conf

6️⃣ 적용 명령

sudo nginx -t
sudo systemctl reload nginx

✅ 3. nginx 기본 확인

sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl enable nginx
sudo systemctl status nginx

 

smb 패키지 설치

#root 권한으로
apt-get update && apt-get install -y \
    smbclient \
    cifs-utils

 

 

3️⃣ HTTPS (Let’s Encrypt + 자동 갱신)

3-1. Certbot 설치

sudo apt install certbot python3-certbot-nginx -y

3-2. HTTPS 인증서 발급 (Nginx 자동 설정)

sudo certbot --nginx

엔터만 누르면 전체 등록

3-3. 자동 갱신 확인 (중요)

sudo systemctl list-timers | grep certbot

갱신 테스트

 

sudo certbot renew --dry-run

 

반응형

댓글