1、通过“yum -y install httpd*”安装apache服务: 2、使用“systemctl start httpd”启动Apache服务器,并测试启动情况: 3、修改主页: 4、访问测试: 这样,centos的apache服务就搭建好了。