centos 7 安装Apache

2025-04-27 17:27:58

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

centos 7 安装Apache

2、安装Apache服务鲻戟缒男yum -y install httpd httpd-devel gcc gcc-c++ libstdc++-devel autoconf automake libtool

centos 7 安装Apache

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

centos 7 安装Apache

4、防火墙允许Apache服务firewall-cmd --add-service=http --permanentsystemctl restart firewalld.service

centos 7 安装Apache

5、访问测试http://ip

centos 7 安装Apache
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:75
  • 阅读量:49
  • 阅读量:42
  • 阅读量:80
  • 阅读量:51
  • 猜你喜欢