环境
- 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 - 测试

本文详细介绍了在CentOS7系统中安装和配置Apache Web服务器的过程,包括使用yum安装httpd及其开发库,设置服务自启动,配置防火墙开放HTTP端口,并通过firewall-cmd命令刷新防火墙配置。
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


被折叠的 条评论
为什么被折叠?