官方安装步骤:Certbot Instructions | Certbot
centos7如何安装snapd:
1、Installing snap on Fedora | Snapcraft documentation
2、CentOS 7中安装Snapd_任文强的博客-CSDN博客_centos安装snap
特殊情况:snap运行报错:【snap error: cannot communicate with server: Post http://localhost/v2/ no such file or directory】的解决方案:重启即可【systemctl restart snapd.service】
如果centos的内核为:kernel 3.10.0-123.4.2.el7.x86_64 则会报错:error: system does not fully support snapd: cannot read the value of fs.may_detach_mounts kernel
parameter: open /proc/sys/fs/may_detach_mounts: no such file or directory
此情况请升级你的centos内核,参考:注意:升级内核之前必须先执行 yum update 更新所有的包,在参考技术|如何在 CentOS 7 中安装或升级最新的内核方法,否则无法更新成功!【升级linux内核的方法参考:技术|如何在 CentOS 7 中安装或升级最新的内核】
旧的安装方式【定时器自动更新都是使用命令certbot -q renew】:【完美实战】CentOS下通过CertBot工具申请免费Let‘s Encrypt泛域名ssl证书【兼容泛域名的ssl,很强大哦】_比特币爱好者007的博客-CSDN博客