Nginx系列之1:限流
安装准备 cd /usr/local/src/ wget http: //nginx.org/download/nginx-1.18.0 .tar.gz # 解压 tar -zxvf /usr/local/src/nginx-1.18.0 .tar.gz # 进入到 nginx-1.18.0 目录下 cd nginx-1.18.0/ # 生成 Makefile ./ configure # 编译并且安装(默认输出到/usr/local/nginx,可在configure中看到) make && make install 如果中间安装失败,大概率是工具缺失,安装 yum -y install make pcre pcre-devel zlib zlib-devel gcc-c++ libtool openssl openssl- devel 如果中间遇到pcre -devel-8.32-17.el7.x86_64: [Errno 256 ] No more mirrors to try. 之类的错误 解决方式: 1 、yum clean all 2 、yum makecache 防火墙相关 练习期间,推荐将防火墙关闭,避免因其导致无法访问而卡住: systemctl stop firewalld.service 或 systemctl stop firewalld # 开启 80