Nginx echo-nginx-module installation tutorial

Source: Internet
Author: User
Tags create directory

Why do I need to write this? A friend asked me how to debug some nginx information. So I thought of this echo module of Chunge.

1. Download the echo module:


Wget -- no-check-certificate https://github.com/openresty/echo-nginx-module/archive/v0.58.zip


2. Copy to a module directory:

Unzip v0.58.zip
Create directory:/usr/local/nginx/module
Cp-r echo-nginx-module-0.58 // usr/local/nginx/module


3. Recompile nginx. Note that the echo module must be added to the original module compilation parameters.
I am using nginx 1.6.3
Go to the nginx Source Code Directory,

. /Configure -- prefix =/usr/local/nginx -- user = www -- group = www -- with-http_stub_status_module -- with-http_ssl_module -- with-http_flv_module -- with-http_geoip_module -- with-http_gzip_static_module -- add-Moule =/usr/local/nginx // module/echo-nginx-module-0.58/
Compile:
Make-j2
######### Do not make install. ########


At this point, nginx is compiled under the source code sbin,


4. Last step:

Mv/usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx_bak
Mv objs/nginx/usr/local/nginx/sbin/
Kill-USR2 'cat/var/run/nginx. Pi'
Kill-QUIT 'cat/var/run/nginx. pid. Oldbin'

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.