CentOS静态站点Apache的详细安装步骤
Apache基础需求
1、Apache官网:www.apache.org
2、软件包名称:httpd
3、主配置文件:/etc/httpd/conf/httpd.conf
4、子配置文件:/etc/httpd/conf.d/*.conf
5、主目录:/var/www/html #网站源代码默认位置
安装Apache
1、yum -y install httpd 安装
systemctl start httpd 启动
systemctl status httpd 查看服务器状态
systemctl enable httpd 开机自启
systemctl stop firewalld 关闭防火墙
setenforce 0 关闭selinux
systemctl stop firewalld 关闭防火墙
httpd -v 查看版本
Server version: Apache/2.4.6 (CentOS) 输出信息