It mainly solves some troubles. Sometimes a software is compiled and installed, and you don't want to overwrite it. The method is as follows:
Nginx is used as an example:
For example, the compiled and installed nginx sample is :. /configure -- user = WWW -- group = WWW -- add-module = .. /ngx_cache_purge-2.0 -- prefix =/usr/local/webserver/nginx -- The with-http_ssl_module now wants to add the nginx status module, we just need to add the module to be added, re-compile :. /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_module Note: Make, do not make install if make install will overwrite the original Oh! Replace the binary file: CP/APP/nginx/sbin/nginx. bak # back up the original binary file CP. /objs/nginx/APP/nginx/sbin/# copy nginx under objs to the installed sbin directory
The method for adding each service software is different. Here is a simple example!
How to add new modules to compiled and installed software