要使用Certbot,需要安装EPEL存储库中的包

Ma *_*hin 7 cron ssl centos lets-encrypt certbot

我使用certbot-auto来部署Let的加密SSL证书,并使用crontab -e更新证书,如下所示:

* 01 * * 1 /home/myname/certbot-auto --quiet

它有如下错误消息:

Bootstrapping dependencies for RedHat-based OSes... yum is /usr/bin/yum To use Certbot, packages from the EPEL repository need to be installed. Please enable this repository and try running Certbot again.

我无法解决这个错误.请帮我!

小智 0

在 centos 7 下,只要启用了“extras”存储库,您就可以运行yum -y install epel-release. 我不确定这在 Centos 6 下是否可用(尝试一下当然不会有什么坏处)。但是,要在 CentOS 6 下手动安装,您只需运行(作为 root 或使用 sudo):

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh epel-release-6*.rpm
Run Code Online (Sandbox Code Playgroud)

在系统上安装 EPEL 存储库后,请尝试certbot再次运行。它现在应该能够自动安装任何所需的依赖项。