How to add an uncompiled and installed nginx module that has been installed successfully to nginx? Now you need to add an uncompiled and installed module www.2cto.com. Example: to install the third-party ngx_cache_purge module (used to clear the cache of the specified URL), nginx needs to be re-compiled, rather than configuration file reference Like apache. so 011. wget http://labs.frickle.com/files/ngx_cache_purge-2.0.tar.gz02 03 tar-zxvf ngx_cache_purge-2.0.tar.gz04 05 cd/data0/software/nginx-1.1.1006 072. check the commands for nginx compilation and installation and which modules are installed: 08/usr/local/webserver/nginx/sbin/nginx-V09 103. add the modules to be installed and re-compile 11. /configure -- user = www -- group = www -- add-module = .. /ngx_cache_purge-2.0 -- prefix =/usr/local/webserver/nginx -- with-http_stub_status_module -- with-http_ssl_module12make, do not make install will overwrite 13make144. replace the nginx binary file: 15cp/app/nginx/sbin/nginx. bak16cp. /objs/nginx/app/nginx/sbin/175. start nginx18/usr/local/webserver/nginx/sbin/nginx