centos 7 安装Apache
1、添加Google的DNS和更新下sed -i '1a nameserver 8.8.8.8&垆杪屑丝#39; /etc/resolv.confyum makecache fastyum -y update

3、开启Apache服务加入启动项systemctl start httpd.servicesystemctl enable httpd.service

5、访问测试http://ip

1、添加Google的DNS和更新下sed -i '1a nameserver 8.8.8.8&垆杪屑丝#39; /etc/resolv.confyum makecache fastyum -y update
3、开启Apache服务加入启动项systemctl start httpd.servicesystemctl enable httpd.service
5、访问测试http://ip