Nginx 功能说明与配置说明.
理论基础
Nginx服务安装启动
- 官网下载Nginx直接解压
wget http://nginx.org/download/nginx-1.20.2.tar.gz
tar -zxvf nginx-1.20.2.tar.gz
cd nginx
./configure --prefix=/usr/local/nginx
- make
- 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