配置文件:yum install httpd -y ##apache软件
yum install httpd-manual ##apache的手册
systemctl start httpd
systemctl enable httpd
firewall-cmd --list-all ##列出火墙信息
firewall-cmd --permanent --add-service。=http ##永久允许http
firewall-cmd --reload ##火墙从新加载策略
cd /var/www/html ##apache的/目录,默认发布目录
vim /var/www/html/index.html ##写默认发布文件内容
vi index.html
<h1> hello world </h1>
打开防火墙
重启httpd
添加端口号
查看防火墙列表