#dnf install -y certbot python3-certbot-nginx

上次元数据过期检查:0:48:31 前,执行于 2026年01月09日 星期五 10时47分56秒。

未找到匹配的参数: certbot 未找到匹配的参数: python3-certbot-nginx

错误:没有任何匹配: certbot python3-certbot-nginx

========

系统默认软件源里没有 Certbot 相关包

# 安装 EPEL 源(CentOS/RHEL 8/9 通用)

dnf install -y epel-release

# 启用 PowerTools/CrB 源

# CentOS 8

dnf config-manager --set-enabled powertools

# 清理缓存并更新元数据
dnf clean all && dnf makecache

# 安装 Certbot 及 Nginx 插件
dnf install -y certbot python3-certbot-nginx
----------
# 安装 Certbot
dnf install -y certbot python3-certbot-nginx

# 获取 SSL 证书
certbot --nginx -d emergency-broadcast

# 验证自动续期
certbot renew --dry-run

#验证安装是否成功

certbot --version

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐