首页 > IT职业 > IT图书 > nginx环境搭建(1)
获取全套nginx教程,请访问瓦力博客
之前小菜有自己从网上找的教程,零散的配过一些nginx,最近赶上双11没把持住就买了nginx教程。系统性的学习nginx,将nginx学习过程记录下来。
由于小菜条件有限,小菜用的硬件环境是阿里云服务器,1核,2GB内存。操作系统是centos7.4
* 1.确认系统网络,保证能够访问公网
* 2.确认yum可用
* 3.确认关闭iptables规则
* 4.确认停用selinux
ping
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim
* 查看 iptables iptables -L
* 关闭 iptables -F
* iptables -t nat -L
* iptables -t nat -F
* 查看 getenforce
* 关闭 setenforce 0
cd /opt/
|
|--app //应用
|--backup //备份
|--download //下载
|--logs //日志
|--work
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2388/viewspace-2820381/ ,如需转载,请注明出处,否则将追究法律责任。