CentOS Minimal 是 CentOS 的一个精简版本,它只包含了最基本的系统组件和工具。虽然它没有预装 Web 服务器软件(如 Apache、Nginx 等),但你可以很容易地手动安装它们。
要在 CentOS Minimal 上搭建 Web 服务器,你可以选择安装 Apache 或 Nginx。以下是安装 Apache 的步骤:
sudo yum update
sudo yum install httpd
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl status httpd
现在,你的 CentOS Minimal 系统已经成功搭建了一个基本的 Web 服务器。你可以通过访问服务器的 IP 地址或域名来查看默认的 Apache 页面。
如果你想安装 Nginx,只需将上述步骤中的 httpd 替换为 nginx 即可。