Linux中apche配置
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 ##火墙重新加载策略
测试:
vim /var/www/html/index.html
<h1>hello world</h1>