我检查了我的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/"
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?
AWS 还有另一种安装 certbot 的方法,说明如下:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt
避免使用 snap 并使用 Pip 安装 Certbot。