Linux installation Nginx

Source: Internet
Author: User
Tags install openssl openssl openssl library

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.