yum install -y epel-release snapd
systemctl enable --now snapd.socket
ln -s /var/lib/snapd/snap /snap
snap install core && snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
certbot --nginx
systemctl restart nginx
定時腳本
crontab -e
0 0 1 */1 * certbot renew
10 0 1 */1 * systemctl restart nginx
systemctl start crond.service
systemctl enable crond.service