一步一步来,官网的教程:
yum install snapd systemctl enable --now snapd.socket ln -s /var/lib/snapd/snap /snap snap install --classic certbot ln -s /snap/bin/certbot /usr/bin/certbot certbot --nginx certbot renew --dry-run
过程中分别输入邮箱、输入y确认、输入域名序号。完事