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