查看Apache工作模式的命令是:

[root@qiangzi httpd-2.2.32]# /usr/local/apache2/bin/apachectl -M

[root@qiangzi ~]# /usr/local/apache2/bin/apachectl -M

Loaded Modules:

core_module (static)

authn_file_module (static)

authn_default_module (static)

authz_host_module (static)

authz_groupfile_module (static)

authz_user_module (static)

authz_default_module (static)

auth_basic_module (static)

include_module (static)

filter_module (static)

log_config_module (static)

env_module (static)

setenvif_module (static)

version_module (static)

mpm_prefork_module (static)

http_module (static)

mime_module (static)

status_module (static)

autoindex_module (static)

asis_module (static)

cgi_module (static)

negotiation_module (static)

dir_module (static)

actions_module (static)

userdir_module (static)

alias_module (static)

so_module (static)

deflate_module (shared)

expires_module (shared)

rewrite_module (shared)

Syntax OK

通过这个命令 也可以看到哪些模块的是动态,哪些是静态。其中以mpm-开头的就是Apache的mpm工作模式,2.2版本的httpd默认的mpm工作模式为prefork。除了prefork外,常见的工作模式还有worker。2.4版本的httpd默认是event工作模式。

工作模式区别:

http://www.cnblogs.com/fnng/archive/2012/11/20/2779977.html