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
  • Linux CentOS 7安装
  • VirtualBox 安装 CentOS 7
  • centos 7 安装mariadb
  • Centos 7 如何安装zabbix
  • centos7配置网络连接
  • 热门搜索
    晴天娃娃怎么做 心怎么折 mc附魔台书架怎么摆 贺卡怎么制作 没问题的英语怎么写 韩语姐姐怎么说 犬细小病毒怎么治疗 牙齿上有黑色的东西洗不掉怎么办 刀鱼怎么做好吃 邮箱怎么申请