nginx入门级教程(1)

获取全套nginx教程,请访问瓦力博客

之前小菜有自己从网上找的教程,零散的配过一些nginx,最近赶上双11没把持住就买了nginx教程。系统性的学习nginx,将nginx学习过程记录下来。

由于小菜条件有限,小菜用的硬件环境是阿里云服务器,1核,2GB内存。操作系统是centos7.4

一.调试环境四项确认

* 1.确认系统网络,保证能够访问公网
* 2.确认yum可用
* 3.确认关闭iptables规则 
* 4.确认停用selinux

访问公网

ping www.baidu.com

yum安装依赖库

yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim

iptables

* 查看 iptables iptables -L
* 关闭 iptables -F
* iptables -t nat -L
* iptables -t nat -F

selinux

* 查看 getenforce
* 关闭 setenforce 0

二. 初始化目录

cd /opt/
|
|--app          //应用
|--backup       //备份
|--download     //下载
|--logs         //日志
|--work         

猜你喜欢

转载自blog.csdn.net/weixin_34218579/article/details/87247894
今日推荐