Nginx动静分离设置步骤,nginx动静步骤


第一步
Linux上安装Nginx 期间很多报错情况
./configure && make && make install时候报错如下解决
报这个错 ./configure: error: the HTTP rewrite module requires the PCRE library. 则需要
安装pcre-devel解决问题
yum -y install pcre-devel
报这个错 ./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
–without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
–with-http_ssl_module –with-openssl= options.
需要安装 yum -y install openssl openssl-devel
还需要安装 gcc openssl zlib pcre
pcre: 用来作地址重写的功能。
zlib:nginx 的gzip模块,传输数据打包,省流量(但消耗资源)。
openssl:提供ssl加密协议
启动如下
这里写图片描述
成功了!

相关内容