主机优惠
信息分享

如何查看linux/Windows下Apache(httpd)当前安装的MPM模块?

如何查看linux/windows下Apache(httpd)当前安装的MPM模块,知道命令确实很简单,不知道的话要使用的时候能够找到就行啦!下面将给出Linux、Windows下的相关操作方法以及命令!

linux下查看Apache(httpd)当前的模块可以使用httpd -l命令,如果提示找不到命令请用完全路径访问,window也可以使用这个命令查看。

Linux下效果如下:
[root@MyServer ~]# httpd -l
Compiled in modules:
core.c
mod_so.c
http_core.c
event.c
[root@MyServer ~]#

上面的event.c就是我的MPM模块。说明我机器的MPM是Event MPM。

window下效果也查不多:
D:\Program Files\Apache22\bin>httpd -l(根据自己的路径选择)
Compiled in modules:
core.c
mod_win32.c
mpm_winnt.c
http_core.c
mod_so.c

还有种办法可以查看当前的MPM模块。

请看下面的命令:
[root@MyServer data]# httpd -V
Server version: Apache/2.4.7 (Unix)
Server built: May 3 2014 10:40:54
Server’s Module Magic Number: 20120211:27
Server loaded: APR 1.5.1, APR-UTIL 1.5.3
Compiled using: APR 1.5.1, APR-UTIL 1.5.3
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with….
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT=”/usr/local/httpd”
-D SUEXEC_BIN=”/usr/local/httpd/bin/suexec”
-D DEFAULT_PIDLOG=”logs/httpd.pid”
-D DEFAULT_SCOREBOARD=”logs/apache_runtime_status”
-D DEFAULT_ERRORLOG=”logs/error_log”
-D AP_TYPES_CONFIG_FILE=”conf/mime.types”
-D SERVER_CONFIG_FILE=”conf/httpd.conf”
[root@MyServer data]#

赞(0)
欢迎转载:VPS推荐网 » 如何查看linux/Windows下Apache(httpd)当前安装的MPM模块?