在使用cacti监控linux主机上的apache时,apache需要加载 mod_status.so 模块.
编辑httpd.conf,手动添加下行:
LoadModule status_module modules/mod_status.so
在重启apache时报错如下:
httpd: Syntax error on line 58 of /etc/httpd/httpd.conf: module status_module is built-in and can‘t be loaded
原因:模块已经内置不用LoadModule 将httpd.conf的status那行用#号注释在启动即可。
那如何查看apache已经内置了哪些模块呢?
/usr/local/apache2/bin/httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
apache添加模块时报错:module status_module is built-in and can't be loaded,布布扣,bubuko.com
apache添加模块时报错:module status_module is built-in and can't be loaded