0、安装httpd服务
yum install httpd -y
1、使用方法
将项目文件html 放到 var/www/html 目录
浏览器打开:http://ip/html
2、httpd的开启、关闭、重启
systemctl start httpd.service #启动
systemctl stop httpd.service #停止
systemctl restart httpd.service #重启
3、查看服务的状态
systemctl status httpd.service
4、设置开机自启
systemctl enable httpd.service #开机自启
systemctl disable httpd.service #关闭开机自启
本文介绍如何安装 Apache HTTP Server,并详细说明了服务的启动、停止、重启及状态查询的方法。此外还介绍了如何设置项目的 HTML 文件路径,以及如何配置服务开机自启。
835

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



