Centos7 yum安装 Lnmp以及Lamp
首先配置防火墙 CentOS 7.0默认使用的是firewall作为防火墙 1.关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 或者开启某端口 firewall-cmd --permanent --add-port=50000/tcp 用该命令查询firewall-cmd--permanent--query-port=50000/tcp 如果是yes就是添加成功,如果是no就是没成功 成功后重载防火墙firewall-cmd --reload 2.关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 Lnmp安装 1.安装nginx yum install yum-priorities -y wge...