/opt/server/apache/bin/apachectl -t #检查语法
/opt/server/apache/bin/apachectl start #启动
/opt/server/apache/bin/apachectl graceful 平滑重启
/opt/server/apache/bin/apachectl -l #查看已安装/编译的模块
strace /opt/server/apache/bin/apachectl -M #strace 跟踪一个进程的使用情况,结果会告诉你,哪些是静态模块哪些是动态模块
httpd -V #查看运行在哪种模式下
Server version: Apache/2.2.15 (Unix)
Server built: Aug 15 2017 19:44:58
Server's Module Magic Number: 20051115:25
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Prefork #这里就标注了,是Prefork模式
httpd -l #查看运行在哪种模式下
Compiled in modules:
core.c
prefork.c #说明运行在prefork模式下
http_core.c
mod_so.c
转载于:https://blog.51cto.com/dengyong/1962210