CentOS7下安装httpd服务

1.安装httpd服务

yum install httpd -y

2.重启httpd服务

systemctl start httpd.service

3.关闭防火墙

systemctl stop iptables.service

4.测试

放置html文件到 、var/www/html 目录

浏览器打开测试:http://ip

猜你喜欢

转载自www.cnblogs.com/setout/p/11075324.html