在CentOS上部署Apache可参考以下步骤:
sudo yum update -ysudo yum install httpd -ysudo systemctl start httpdsudo systemctl enable httpdsudo firewall-cmd --permanent --zone=public --add-service=http,sudo firewall-cmd --permanent --zone=public --add-service=https,sudo firewall-cmd --reload