1./configure--prefix=/export/shell/nginx: Installation directory
Checking for OS
+ Linux 2.6.32-358.el6.x86_64 x86_64
Checking for C compiler ... found
+ using GNU C compiler
+ gcc version:4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
Checking for gcc-pipe switch ... found
。。。。。。
Checking for getaddrinfo () ... found
Checking for PCRE library ... not found
Checking for PCRE library in/usr/local/... not found
Checking for PCRE library in/usr/include/pcre/... not found
Checking for PCRE library in/usr/pkg/... not found
Checking for PCRE library in/opt/local/... not found
./configure:error:the HTTP Rewrite module requires the PCRE library.
2. Under root: Yum-y install Pcre-devel, yum-y install OpenSSL openssl-devel
You can either disable the module by using--without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
Statically from the source with Nginx by using--with-pcre=<path> option.
3. Install log successfully:
Configuration Summary
+ Using System PCRE Library
+ OpenSSL Library is not used
+ md5:using System Crypto Library
+ sha1:using System Crypto Library
+ Using System zlib Library
Nginx path prefix: "/export/shell/nginx"
Nginx binary file: "/export/shell/nginx/sbin/nginx"
Nginx configuration prefix: "/export/shell/nginx/conf"
Nginx configuration file: "/export/shell/nginx/conf/nginx.conf"
Nginx pid file: "/export/shell/nginx/logs/nginx.pid"
Nginx error log file: "/export/shell/nginx/logs/error.log"
Nginx HTTP access log file: "/export/shell/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"
4. Unzip directory execution: make compile source code
5. Switch to root user-execute command: sudo su root; install-execute command: Make install
Create a soft chain: Execute command: Ln-s/usr/local/servers/nginx/sbin/nginx/usr/local/bin/nginx
Linux installation Nginx