源码编译安装Nginx(2)

--group=name — sets the name of agroup whose credentials will be used by worker processes. After installation,the name can always be changed in the nginx.conf configuration fileusing the user directive.By default, a group name is set to the name of an unprivileged user.

--with-select_module
--without-select_module — enables or disables building a module thatallows the server to work with the select() method. This module isbuilt automatically if the platform does not appear to support more appropriatemethods such as kqueue, epoll, or /dev/poll.

--with-poll_module
--without-poll_module — enables or disables building a module that allowsthe server to work with the poll() method. This module is builtautomatically if the platform does not appear to support more appropriatemethods such as kqueue, epoll, or /dev/poll.

--without-http_gzip_module — disablesbuilding a module that compressesresponses of an HTTP server. The zlib library is required tobuild and run this module.

--without-http_rewrite_module —disables building a module that allows an HTTP server toredirectrequests and change URI of requests. The PCRE library is required tobuild and run this module.

--without-http_proxy_module — disablesbuilding an HTTP server proxyingmodule.

--with-http_ssl_module — enablesbuilding a module that adds the HTTPSprotocol support to an HTTP server. This module is not built bydefault. The OpenSSL library is required to build and run this module.

--with-pcre=path — sets the path tothe sources of the PCRE library. The library distribution (version 4.4 —8.32) needs to be downloaded from the PCRE siteand extracted. The rest is done by nginx’s ./configure and make.The library is required for regular expressions support in the location directiveand for the ngx_http_rewrite_module module.

--with-pcre-jit — builds the PCRElibrary with “just-in-time compilation” support (1.1.12, the pcre_jit directive).

--with-zlib=path — sets the path tothe sources of the zlib library. The library distribution (version 1.1.3 —1.2.7) needs to be downloaded from the zlib siteand extracted. The rest is done by nginx’s ./configure and make.The library is required for the ngx_http_gzip_modulemodule.

--with-cc-opt=parameters — setsadditional parameters that will be added to the CFLAGS variable. When using thesystem PCRE library under FreeBSD, --with-cc-opt="-I/usr/local/include"should be specified. If the number of files supportedby select() needs to be increased it can also be specified here suchas this: --with-cc-opt="-D FD_SETSIZE=2048".

--with-ld-opt=parameters — setsadditional parameters that will be used during linking. When using the systemPCRE library under FreeBSD, --with-ld-opt="-L /usr/local/lib" shouldbe specified.

Example of parameters usage (all of thisneeds to be typed in one line):

./configure

--sbin-path=/usr/local/nginx/nginx

--conf-path=/usr/local/nginx/nginx.conf

--pid-path=/usr/local/nginx/nginx.pid

--with-http_ssl_module

--with-pcre=../pcre-4.4

--with-zlib=../zlib-1.1.3

After configuration, nginx is compiled andinstalled using make.

CentOS 6.2实战部署Nginx+MySQL+PHP

使用Nginx搭建WEB服务器

搭建基于Linux6.3+Nginx1.2+PHP5+MySQL5.5的Web服务器全过程

CentOS 6.3下Nginx性能调优

CentOS 6.3下配置Nginx加载ngx_pagespeed模块

CentOS 6.4安装配置Nginx+Pcre+php-fpm

Nginx安装配置使用详细笔记

Nginx日志过滤 使用ngx_log_if不记录特定日志

Nginx 的详细介绍请点这里
Nginx 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/248ce6912690b4282a2e90fc7149861a.html