Linux中是否有一个命令来找出哪些模块被加载并在Apache中运行?
你可以使用apachectl(或apache2ctl)
apachectl -D DUMP_MODULES
httpd -M
或者如果你使用Ubuntu尝试
apache2 -M or apache2ctl -M
httpd -l # for static modules httpd -M # for shared modules
或者在Ubuntu上:
apache2 -l # for static modules apache2 -M # for shared modules
另一种方法是使用lsof。
lsof -p <apache pid> | grep mod_
这会给你一个所有加载模块的列表。 这不仅适用于apache,还适用于所有其他进程。