更新时间:2023-02-02 20:44:18
如果您使用的是Amazon Linux,则它是基于CentOS的,它是基于RedHat的.基于RH的安装使用yum
而不是apt-get
.像yum search httpd
这样的东西应该向您显示可用的Apache软件包-您可能需要yum install httpd24
.
If you're using Amazon Linux it's CentOS-based, which is RedHat-based. RH-based installs use yum
not apt-get
. Something like yum search httpd
should show you the available Apache packages - you likely want yum install httpd24
.
Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses
yum
.