安装Apache
使用yum命令安装Apache。
请执行以下命令。
# yum install httpd
请运行以下命令来确认是否已安装Apache。
# httpd -v
启动Apache
请执行以下命令。
# systemctl start httpd
请执行以下命令以确定Apache是否已启动。
# systemctl status httpd

設置為自動啟動
请执行以下命令。
# systemctl enable httpd
检查自动启动设置。
# systemctl is-enabled httpd

以上是安装的结束。