第一次尝试:
[root@server1 html]# yum install -y python2-certbot-nginx
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel7.3 | 4.1 kB 00:00
No package python2-certbot-nginx available.
Error: Nothing to do
进入官网https://certbot.eff.org/lets-encrypt/centosrhel7-nginx,进行第二次尝试:
官网提示如下:
certbot打包在epel(EnterpriseLinux的额外包)中。要使用certbot,必须首先启用EPEL存储库。在RHEL或Oracle Linux上,还必须启用可选通道。
yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
yum install certbot python2-certbot-nginx