第一步:安装Apache服务程序(apache服务的软件包名称叫做httpd)
yum install httpd -y
第二步: 将Apache服务添加到 开机自启中
systemctl start httpd
systemctl enable httpd
第三步:打开浏览器 测试 127.0.0.1
服务目录:/etc/httpd
主配置目录:/etc/httpd/conf/httpd.conf
网站数据目录:/var/www/html
访问日志:/var/log/httpd/access_log
错误日志:/var/log/httpd/error_log