certbot官网地址
安装snapd
snapd是一个包管理工具(类似应用商店),certbot的工具是发布在这里。
安装epel源
如果已经安装过就不需要了
yum install epel-release安装snapd
yum -y install snapdsnapd启用通信socket
systemctl enable --now snapd.socket创建符号链接
ln -s /var/lib/snapd/snap /snapsnap install core
snap refresh core
安装certbot
snap install --classic certbotln -s /snap/bin/certbot /usr/bin/certbot安装证书
certbot --nginxor
certbot certonly --nginxcertbot install --cert-name ttk.npex.top证书续期
certbot renew♥转载请注明出处♥