Nginx re-compile and add modules

Source: Internet
Author: User
Find the nginx installation source code root directory. if not, download the new source code. http://nginx.org Tarxvzfnginx-1.3.2.tar.gz to view the ngixn version of the extremely compiled parameters/usr/local/nginx/sbin/nginx-V to enter the nginx source code directory cdnginx-1.3.2 below is re-programmed... "/> <scr find the nginx installation source code root directory. if not, download the new source code. http://nginx.org Tar xvzf nginx-1.3.2.tar.gz to view ngixn version of the extremely compiled parameters/usr/local/nginx/sbin/nginx-V into the nginx source directory cd nginx-1.3.2 below is the re-compiled code and module. /configure -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-http_ssl_module -- with-file-aio -- with-http_realip_module make never make install, otherwise, nginx is added to the objs directory after make is installed, this is the new version of the program that backs up the old nginx program cp/usr/local/nginx/sbin/nginx. bak overwrite the old cp objs/nginx/usr/local/nginx/sbin/nginx to test whether the new nginx program is correct/usr/local/nginx/sbin/nginx -t nginx: theconfiguration file/usr/local/nginx/conf/nginx. conf syntax is OK nginx: configuration file/usr/local/nginx/conf/nginx. conf test issuccessful smoothly restart nginx/usr/local/nginx/sbin/nginx-s reload view ngixn version extremely compiled parameter/usr/local/nginx/sbin/nginx-V this is my new compiled code :. /configure -- prefix =/usr/local/nginx -- with-google_perftools_module -- user = www -- group = www -- with-http_stub_status_module -- with-http_gzip_static_module -- with-openssl =/usr/-- with-pcre =/mydata /soft/pcre-8.31 this article is from the Linux community website (www.linuxidc.com) original article: http://www.linuxidc.com/Linux/2013-06/86438.htm
Related Article

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.