2013-08-01 2 views
1

내 아파치가 사용하는 MPM을 결정하는 데 문제가 있어도 누구나 다음 출력을 기반으로 말할 수 있습니까?
내 생각 엔 Prefork가 사용되고있는 것입니까?Prefork 대 Apache 용 작업자 모듈, 무엇이 사용되고 있습니까?

[루트 @의 rp1a ~] # 고양이의/etc/SYSCONFIG/아파치

#HTTPD=/usr/sbin/httpd.worker 

#OPTIONS= 

#HTTPD_LANG=C 
ulimit -n 65000 
OPTIONS="-D SetCacheHeaders -D Gzip -D front" 

[루트 @의 rp1a ~] # 꼬리

/etc/httpd/conf.d/rp-base.conf
<IfModule prefork.c> 
StartServers  8 
MinSpareServers 5 
MaxSpareServers 20 
ServerLimit  256 
MaxClients  256 
MaxRequestsPerChild 4000 
</IfModule> 

[루트 @의 rp1a ~] # 개의에서는 apachectl -V

Server version: Apache/2.2.3 
Server built: Jun 13 2013 10:45:37 
Server's Module Magic Number: 20051115:3 
Server loaded: APR 1.2.7, APR-Util 1.2.7 
Compiled using: APR 1.2.7, APR-Util 1.2.7 
Architecture: 64-bit 
Server MPM:  Prefork 
threaded:  no 
    forked:  yes (variable process count) 
Server compiled with.... 
-D APACHE_MPM_DIR="server/mpm/prefork" 
-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=128 
-D HTTPD_ROOT="/etc/httpd" 
-D SUEXEC_BIN="/usr/sbin/suexec" 
-D DEFAULT_PIDLOG="run/httpd.pid" 
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status" 
-D DEFAULT_LOCKFILE="logs/accept.lock" 
-D DEFAULT_ERRORLOG="logs/error_log" 
-D AP_TYPES_CONFIG_FILE="conf/mime.types" 
-D SERVER_CONFIG_FILE="conf/httpd.conf" 

[루트 @의 rp1a ~] #는/usr/sbin에/아파치 -V

Server version: Apache/2.2.3 
Server built: Jun 13 2013 10:45:37 
Server's Module Magic Number: 20051115:3 
Server loaded: APR 1.2.7, APR-Util 1.2.7 
Compiled using: APR 1.2.7, APR-Util 1.2.7 
Architecture: 64-bit 
Server MPM:  Prefork 
    threaded:  no 
    forked:  yes (variable process count) 
Server compiled with.... 
-D APACHE_MPM_DIR="server/mpm/prefork" 
-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=128 
-D HTTPD_ROOT="/etc/httpd" 
-D SUEXEC_BIN="/usr/sbin/suexec" 
-D DEFAULT_PIDLOG="run/httpd.pid" 
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status" 
-D DEFAULT_LOCKFILE="logs/accept.lock" 
-D DEFAULT_ERRORLOG="logs/error_log" 
-D AP_TYPES_CONFIG_FILE="conf/mime.types" 
-D SERVER_CONFIG_FILE="conf/httpd.conf" 

[루트 @의 rp1a ~] # 개의 apachectl을

Compiled in modules: 
    core.c 
    prefork.c 
    http_core.c 
    mod_so.c 

-l [루트 @의 rp1a ~] # 아파치 -l

Compiled in modules: 
    core.c 
    prefork.c 
    http_core.c 
    mod_so.c 

[루트 @의 rp1a ~] # httpd.worker - L

Compiled in modules: 
    core.c 
    worker.c 
    http_core.c 
    mod_so.c 

[루트 @의 rp1a ~] PS # -C httpd.worker -F

UID  PID PPID C SZ RSS PSR STIME TTY   TIME CMD 

[root @ rp1a ~] # ps -C httpd -F | 머리

UID  PID PPID C SZ RSS PSR STIME TTY   TIME CMD 
root  3947  1 0 63439 12092 0 Jul29 ?  00:00:12 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16411 3947 0 64231 8632 1 13:28 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16501 3947 0 64231 9372 1 13:32 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16662 3947 0 64149 8452 1 13:40 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16807 3947 0 64199 8688 1 13:50 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16814 3947 0 64147 8452 1 13:51 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16836 3947 0 64199 8612 1 13:51 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16876 3947 0 64231 9204 1 13:51 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 
apache 16935 3947 0 64139 8452 1 13:54 ?  00:00:01 /usr/sbin/httpd -D SetCacheHeaders -D Gzip -D front 

답변

1

서버 MPM : prefork의

그래서, 그래, prefork의 사용 사용될 것으로 보인다. 그러나 올바른 바이너리를 찾고 있는지 확인하려면/usr/sbin/httpd -V를 시도하십시오.

+0

'/ usr/sbin/httpd -V' 출력으로 업데이트 된 질문은 Prefork와 비슷합니다. – bobbyrne01

+0

네, prefork MPM을 사용하고 있습니다. –