1.安装httpd服务
yum install httpd -y
2.重启httpd服务
systemctl start httpd.service
3.关闭防火墙
systemctl stop iptables.service
4.测试放置html文件到 var/www/html 目录
5.其他命令
systemctl start httpd.service #启动
systemctl stop httpd.service #停止
systemctl restart httpd.service #重启
systemctl enable httpd.service #开机启动
systemctl disable httpd.service #开机不启动
systemctl status httpd.service #检查httpd状态
本文介绍如何在Linux环境下使用yum安装Apache HTTP服务,包括重启服务、关闭防火墙、放置HTML文件到指定目录等操作,以及常用的服务管理命令。
1070

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



