通过yum源安装Apache服务 启动apache服务 查看服务运行状态(结果中有 active (running)字样,表示服务正在运行中) 设置服务开机自启动systemctl enable httpd设置为开机自启动后,当开机或者重启操作系统后,httpd自动运行浏览器查看 Apache 默认测试页面。http://192.168.21.144 Apache 的默认配置文件在/etc/httpd/conf/目录下,默认主配置文件为 httpd.conf