且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

apt-get:找不到命令

更新时间: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.

注意:Amazon Linux 2与CentOS有 自编写此答案以来,但仍使用yum.

Note: Amazon Linux 2 has diverged from CentOS since the writing of this answer, but still uses yum.