How to add an uncompiled installation module to nginx after successful installation
Source: Internet
Author: User
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: install the third-party ngx_cache_purge module (used to clear the cache of the specified URL). The nginx module needs to be re-edited... 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
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.