How to add new modules to compiled and installed software

Source: Internet
Author: User

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

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.