certbot-auto (2021),适用于 Amazon Linux 版本 2 (Karoo) 和 nginx

问题描述 投票:0回答:2

我检查了我的ec2系统版本:

cat /etc/system-release
Amazon Linux release 2 (Karoo)


cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

新版本的certbot似乎需要安装snapd,但是

Amazon Linux release 2
似乎不支持snapd的安装。

sudo yum install snapd
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                               | 3.7 kB     00:00
No package snapd available.
Error: Nothing to do

我在snapd的安装教学中没有看到相关的系统版本:

不知道

Amazon Linux release 2
是否应该归入CentOS
Amazon Linux release 2
没有包含在选项中,也没有看到相关的单词。

Epel-release
dnf
CentOS
教学中提到过,但好像不支持安装。

或者ec2只是使用其他方法安装certbot?

nginx amazon-ec2 certbot
2个回答
0
投票

AWS 还有另一种安装 certbot 的方法,说明如下:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt


0
投票

避免使用 snap 并使用 Pip 安装 Certbot。

这里是Certobot 官方文档

© www.soinside.com 2019 - 2024. All rights reserved.