环境
- centos 7
- apache
过程
- 安装
yum install -y httpd httpd-devel.x86_64
- 启动
systemctl start httpd.service
- 设置自启
systemctl enable httpd.service
- 防火墙配置
firewall-cmd --zone=public --add-port=80/tcp --permanent
- 刷新配置
firewall-cmd --reload
- 测试
yum install -y httpd httpd-devel.x86_64
systemctl start httpd.service
systemctl enable httpd.service
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload