zoukankan      html  css  js  c++  java
  • Apache2动态加载所有模块

    Apache2中使用“--enable-mods-shared”动态加载模块,官方解释如下:

    --enable-mods-shared=MODULE-LIST

    Defines a list of modules to be enabled and build as dynamic shared modules. This mean, these module have to be loaded dynamically by using theLoadModule directive.

    MODULE-LIST is a space separated list of modulenames enclosed by quotation marks. The module names are given without the preceding mod_. For example:

    --enable-mods-shared='headers rewrite dav'

    Additionally you can use the special keywords all and most. For example,

    --enable-mods-shared=most

    will compile most modules and build them as DSO modules.

    Caveat: --enable-mods-shared=all does not actually build all modules. To build all modules then, one might use:

    ./configure \
    --with-ldap \
    --enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache"
     所以,要加载所有的模块,需要按照如上方式加载。
     
    另外,使用了--enable-mods-shared的话就不需要--enable-so了,官方解释如下:
    --enable-so Enable DSO capability provided by mod_so. This module will be automatically enabled if you use the --enable-mods-shared option.
  • 相关阅读:
    Redis(八)理解内存
    Redis(七)Redis的噩梦:阻塞
    Redis(六)复制
    Redis(五)持久化
    笔试面试经典问题
    两个栈实现一个队列
    单链表相关操作
    我的笔记本
    10进制正整数转4位定长的36进制字符串
    微软2016校园招聘在线笔试之Magic Box
  • 原文地址:https://www.cnblogs.com/zhangqingsh/p/3010362.html
Copyright © 2011-2022 走看看