Nginx 配置

Nginx 功能说明与配置说明.

理论基础

Nginx服务安装启动

  1. 官网下载Nginx直接解压 wget http://nginx.org/download/nginx-1.20.2.tar.gz tar -zxvf nginx-1.20.2.tar.gz
  2. cd nginx
  3. ./configure --prefix=/usr/local/nginx
  4. make
  5. make install

错误

./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel

./configure: error: the HTTP gzip module requires the zlib library.
安装zlib-devel解决问题
yum install -y zlib-devel