---------------------------------------httpd搭建---------------------------------------------
yum install httpd -y
#安装httpd
vim /etc/httpd/conf.d/vhosts.conf
#修改httpd配置文件
firewall-cmd --permanent --add-service=http
#防火墙放行httpd
firewall-cmd --reload
#防火墙配置立即生效
firewall-cmd --list-all
#查看防火墙放行服务
systemctl start httpd
#开启httpd服务