nginx中间件架构环境的配置

                             nginx中间件架构环境的配置


centos7的环境调试确认
四项确认
1、确认系统网络

ping www.baidu.com


2、确认yum可用

yum list|grep gcc


3、确认关闭iptables规则

iptables -L

查询结果,没有

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination       

如果有的话,请输入下面指令进行关闭

iptables -F

 列出 nat 表所有链的所有规则

iptables -t nat -L

查看结果,没有

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination  

如果有的话,也进行关闭

iptables -t nat -F


4、确认停用selinux

[root@Manka ~]# getenforce
Disabled

如果没关闭,请输入关闭指令

​​​​​​​setenforce 0

安装辅助软件的指令
yum -y install gcc gcc-c++ antoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim

为了更好的学习课程,跟视频创建了一样的目录结构

nginx中间件架构环境的配置_第1张图片



























 

你可能感兴趣的:(Nginx)