一、环境 虚拟机:VMWare WorkStation Pro 15.x 系统:CentOS 7.x 其他:已配置好yum源,直接使用yum命令安装MySQL 二、步骤 2.1 安装Apache yum install httpd 中间有一步需要确认安装依赖,直接输入y即可! 2.2 设置httpd服务开机启动 systemctl enable httpd 2.3 启动Apache systemctl start httpd 2.4 查看Apache的状态