网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

centos 7 安装Apache

时间:2024-10-14 08:01:03

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
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com