red hat Linux搭建LAMP平台
Linux系统、Apache、Mysql、PHP 安装配置前确保已有开发环境软件包 [root@localhost ~] # yum -y install pcre-devel zlib-devel links 关闭selinux 和 iptables [root@localhost ~] # vi /etc/selinux/config # 修改配置文件,关闭selinux功能 SELINUX=disabled # 设定为disabled #SELINUXTYPE=targeted # 注释该项,行首添加# [root@localhost ~] # systemctl stop firewalld #暂时关闭防火墙 [root@localhost ~] # systemctl disable firewalld #永久关闭防火墙 [root@localhost html] # cd /var/www/html/ #网页存放处 首先安装Apache,和相关依赖包ape-* [root@localhost ~] # yum -y install httpd [root@localhost ~] # systemctl start httpd ##开启httpd服务 [root@localhost ~] # ss -tunl | grep 80 ##验证 tcp LISTEN 0