LAMP 安装(centos7+mysql5.7+apache+php5.6)
2018-03-10 19:11:00 hailanzi 阅读数 5766更多
分类专栏: PHP LAMP 环境
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/hailanzi/article/details/79510240
网上有很多教程,按照步骤都不成功,折腾一天终于把LAMP环境搭建好,:这里采用yum方式安装。
一、安装虚拟机(自行安装)
二、安装centos7(CentOS-7-x86_64-Everything-1611)
注意安装都是用root权限,不是root请加sudo
三、安装Apache
1、安装centos7默认自带(Apache2.4.6)版本
yum -y install httpd
2、开启apache服务
systemctl start httpd.service
3、设置apache服务开机启动
systemctl enable httpd.service
4、开启防火墙
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
firewall-cmd --permanent --zone=public --add-service=http
5、开启80端口
firewall-cmd --zone