Nginx compilation, UBUNTU

Source: Internet
Author: User

Compile nginx + mod_wsgi (it has been around for several hours and is not worth it)

 

* Libpcre3 requires the dev version of APT-Get install libpcre3-dev. Generally, Lib is divided into the binary version and the dev version of the leading file. When compiling something, You must select the dev version of the leading file.

 

* Sudo apt-Get install zlib1g-dev

 

* Sometimes the new Lib installed in Ubuntu needs to be restarted, otherwise it will say it cannot be found.

 

* Currently used Nginx-0.8.34, mod_wsgi official link for not for this version, so go to SVN check out code to compile. Similar to compiling other things, it is best to check out from SVN!

 

* Remember to remove the mail-related modules and add the status module.

 

./Configure -- With-OpenSSL =/usr/lib/SSL/-- add-module = ../mod_wsgi

 

./Configure

-- With-OpenSSL =/usr/lib/SSL/

-- With-md5 =/usr/lib

-- Add-module = ../mod_wsgi

With-http_stub_status_module

With-http_realip_module

Without-mail_pop3_module

Without-mail_imap_module

Without-mail_smtp_module

 

########################

UBUNTU Nginx Installation

Sudo apt-get install libgcrypt11-dev libpcre3-dev libssl-dev

 

./Configure/

-- With-openssl =/usr/lib/ssl //

-- With-md5 =/usr/lib/

-- With-http_stub_status_module/

-- With-http_realip_module/

-- Without-mail_pop3_module/

-- Without-mail_imap_module/

Without-mail_smtp_module

 

Make

 

Sudo make install

 

 

 

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.