Prefork 模块不一致

Prefork 模块不一致

我有以下情况:

  • 跑步aptitude search apache2-mpm-给我:

    p  ...
    p  ...
    i   apache2-mpm-worker     -transitional worker MPM package for apache2
    p   ...
    
  • 但当我执行时apache2 -V我得到了回应

    server_MPM: prefork
    
  • 此外,执行时apache2 -lprefork.c缺少

我不确定配置是否有问题。

有任何想法吗?

答案1

该软件包中提供了三个标准 MPM(preforkworker和) (因此在Apache 2.4 的所有安装中都有):eventapache2-binapache2

$ dpkg -L apache2-bin | grep mpm    
/usr/lib/apache2/modules/mod_mpm_event.so
/usr/lib/apache2/modules/mod_mpm_prefork.so
/usr/lib/apache2/modules/mod_mpm_worker.so

变更日志条目2.4.1-1

* Refactor binary packages, now as things simplified. MPMs are simple
  modules now, they can be bundled into the same binary package which do not
  need to conflict with each other. Thus, Apache now primarily consists of the
  following packages:
  + apache2 - configuration files and init scripts, Debian specific helper
  scripts
  + apache2-bin - binaries and modules
  + apache2-data - error pages and images

默认情况下,prefork处于启用状态。

相关内容