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 #关闭开机自启