RHEL 에 패키지 설치한 Apache httpd의 기본 prefork MPM 을 변경하는 방법
RHEL에 패키지로 설치한 Apache HTTPD는 기본적으로 prefork
MPM 로딩으로 설정되어있다.
이것을 worker
MPM이나 event
MPM으로 변경하려면
/etc/sysconfig/httpd
파일을 수정해주면 된다.
# Configuration file for the httpd service. # # The default processing model (MPM) is the process-based # 'prefork' model. A thread-based model, 'worker', is also # available, but does not work with some modules (such as PHP). # The service must be stopped before changing this variable. # HTTPD=/usr/sbin/httpd.event # # To pass additional options (for instance, -D definitions) to the # httpd binary at startup, set OPTIONS here. # #OPTIONS= # # By default, the httpd process is started in the C locale; to # change the locale in which the server runs, the HTTPD_LANG # variable can be set. # #HTTPD_LANG=C # # By default, the httpd process will create the file # /var/run/httpd/httpd.pid in which it records its process # identification number when it starts. If an alternate location is # specified in httpd.conf (via the PidFile directive), the new # location needs to be reported in the PIDFILE. # #PIDFILE=/var/run/httpd/httpd.pid
아울러 worker나 event 방식에서는 php가 동작함에 있어 thread-safe를 보장하지 않으므로 참고하기 바람
로그인하면 댓글을 남길 수 있습니다.