配置 HTTPS(Let’s Encrypt)
安装 Certbot
CentOS 7:sudo yum install -y certbot python2-certbot-nginx
CentOS Stream 8+ / Rocky Linux 8+:sudo dnf install -y certbot python3-certbot-nginx
申请并自动配置 SSL 证书
text
sudo certbot --nginx -d www.your-domain.com -d your-domain.com
```<br>
验证证书自动续期<br>sudo certbot renew –dry-run```
