syxian 发表于 2011-12-22 08:54

如何查看Apache当前的MPM模式?

<DIV>apache的工作模式主要分为prefork MPM 和 worker MPM</DIV>
<DIV>查看Apache当前的MPM模式<BR># httpd -V<BR>Server version: Apache/2.2.3<BR>Server built:&nbsp;&nbsp; Jan 11 2008 08:19:18<BR>Server's Module Magic Number: 20051115:3<BR>Server loaded:&nbsp; APR 1.2.7, APR-Util 1.2.7<BR>Compiled using: APR 1.2.7, APR-Util 1.2.7<BR>Architecture:&nbsp;&nbsp; 32-bit<BR><FONT color=#f00000>Server MPM:&nbsp;&nbsp;&nbsp;&nbsp; Prefork</FONT><BR>&nbsp; threaded:&nbsp;&nbsp;&nbsp;&nbsp; no<BR>&nbsp;&nbsp;&nbsp; forked:&nbsp;&nbsp;&nbsp;&nbsp; yes (variable process count)<BR>Server compiled with....<BR><FONT color=#f00000>&nbsp;-D APACHE_MPM_DIR="server/mpm/prefork"</FONT><BR>&nbsp;-D APR_HAS_SENDFILE<BR>&nbsp;-D APR_HAS_MMAP<BR>&nbsp;-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<BR>&nbsp;-D APR_USE_SYSVSEM_SERIALIZE<BR>&nbsp;-D APR_USE_PTHREAD_SERIALIZE<BR>&nbsp;-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<BR>&nbsp;-D APR_HAS_OTHER_CHILD<BR>&nbsp;-D AP_HAVE_RELIABLE_PIPED_LOGS<BR>&nbsp;-D DYNAMIC_MODULE_LIMIT=128<BR>&nbsp;-D HTTPD_ROOT="/etc/httpd"<BR>&nbsp;-D SUEXEC_BIN="/usr/sbin/suexec"<BR>&nbsp;-D DEFAULT_PIDLOG="logs/httpd.pid"<BR>&nbsp;-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"<BR>&nbsp;-D DEFAULT_LOCKFILE="logs/accept.lock"<BR>&nbsp;-D DEFAULT_ERRORLOG="logs/error_log"<BR>&nbsp;-D AP_TYPES_CONFIG_FILE="conf/mime.types"<BR>&nbsp;-D SERVER_CONFIG_FILE="conf/httpd.conf"</DIV>
<DIV># /usr/local/apache/bin/httpd&nbsp; -l<BR>Compiled in modules:<BR>&nbsp; core.c<BR><FONT color=#f00000>&nbsp; prefork.c</FONT><BR>&nbsp; http_core.c<BR>&nbsp; mod_so.c</DIV>
页: [1]
查看完整版本: 如何查看Apache当前的MPM模式?