Last update at :2023-12-30,Edit by888u
How to check the currently installed MPM module of Apache (httpd) under linux/windows. It is really simple to know the command. If you don’t know, you can find it when you want to use it! The relevant operation methods and commands under Linux and Windows will be given below!
To view the current module of Apache (httpd) under Linux, you can use the httpd -l command. If you are prompted that the command cannot be found, please use the full path to access it. You can also use this command to view it in windows.
The effect under Linux is as follows:
[root@MyServer ~]# httpd -l
Compiled in modules:
core.c
mod_so.c
http_core.c
event.c
[root@MyServer ~]#
The event.c above is my MPM module. Explain that the MPM of my machine is Event MPM.
There are not many effects under window:
D:\Program Files\Apache22\bin>httpd -l (select according to your own path)
Compiled in modules:
core.c
mod_win32.c
mpm_winnt.c
http_core.c
mod_so.c
There is also a way to view the current MPM module.
Please see the following command:
[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]#
Recommended site searches: How to register a website, Zhenjiang high-defense server, BBS registration, which Hong Kong server is fast, Hong Kong server, national dynamic IP, check IP detailed address, free mainland China space, domain name price, telecom host rental, < /p>
发表评论