一、安装apache
- 启动apache
systemctl start httpd
- 设置httpd服务开机自启
systemctl enable httpd
- 防火墙设置开启80/443端口
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
- 在浏览器中输入localhost或127.0.0.1或本地IP地址测试是否安装成功
二、安装mysql
- 安装mysql
yum install mariadb mariadb-server mariadb-libs maria