Nginx编译配置杂记

Posted Lambeto

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx编译配置杂记相关的知识,希望对你有一定的参考价值。

1、http://nginx.org/download/nginx-1.6.3.tar.gz

2、

[[email protected] nginx-1.6.3]#./configure --prefix=/usr/local/nginx 
------------------------------------------------------
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module

--------------------------------------------------------
Configuration summary
  + PCRE library is not used
  + OpenSSL library is not used
  + using builtin md5 code
  + sha1 library is not found
  + zlib library is not used

3、

[[email protected] nginx-1.6.3]# yum -y install pcre*
[[email protected] nginx-1.6.3]# yum -y install zlib*
[[email protected] nginx-1.6.3]# yum -y install openssl*
[[email protected] nginx-1.6.3]#./configure --prefix=/usr/local/nginx 						   --with-http_ssl_module 
-------------------------------------------------------------						   
Configuration summary
  + using system PCRE library
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library
  
--------------------------------------------------------------  
  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"  

 


 

以上是关于Nginx编译配置杂记的主要内容,如果未能解决你的问题,请参考以下文章

nginx配置杂记

Nginx杂记

Nginx反向代理和缓存杂记

杂记:Django和static,Nginx配置路径,json_schema

nginx.conf 忽略了 nginx-ingress 配置映射片段

nginx听课随记杂记