Home > other >  Add a new module has been installed nginx server
Add a new module has been installed nginx server

Time:10-11

This article just show add method, the specific use of module will be subject to their actual needs, to add http_stub_status_module module, for example:

A, look at the compiled parameter

/usr/local/nginx/sbin/nginx -v results as follows:
-- prefix=/usr/local/nginx - with - http_ssl_module - with - pcre=/opt/software/pcre 8.32 found no http_stub_status_module module

Two, recompile

1, compile into nginx installation directory, add - with - http_stub_status_module recompiling

./configure -- prefix=/usr/local/nginx - with - http_ssl_module - with - pcre=/opt/software/pcre - 8.32 - with - http_stub_status_module

2, the implementation of the make to compile, don't make install, otherwise you will cover all the previous nginx

3, the backup of the original boot file

Cp/usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx. Bak

4, replace the boot file (re compiled files in/opt/software/nginx - 1.10.1/objs)

Cp/opt/software/nginx - 1.10.1 objs/nginx/usr/local/nginx/sbin/nginx

5, whether the authentication module has been added successfully

/usr/local/nginx/sbin/nginx -v

Execution after see http_stub_status_module module, add a success,
  • Related