Apache2 Install on Debian 12 在 Debian 12 上安裝 Apache2


System Environment

OS: Debian 12

sudo apt update -y && sudo apt upgrade -y && \
sudo apt install apache2

Install the SSL Certificate Environment

sudo apt install certbot python3-certbot-apache -y

Obtain the SSL Certificate

sudo certbot --apache

Auto Renewal

sudo certbot renew --dry-run

系統環境

作業系統:Debian 12

sudo apt update -y && sudo apt upgrade -y && \
sudo apt install apache2

安裝 SSL 憑證環境

sudo apt install certbot python3-certbot-apache -y

取得 SSL 憑證

sudo certbot --apache

自動續期

sudo certbot renew --dry-run