繁体   English   中英

无法在Ubuntu上的Apache 2.2上禁用模块

[英]Cannot disable module on Apache 2.2 on Ubuntu

我使用了命令apachectl -M,我禁用了所有不必要的模块,现在我试图禁用我得到的apache的日志:

Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 deflate_module (shared)
 dir_module (shared)
 headers_module (shared)
 mime_module (shared)
 php5_module (shared)
 proxy_module (shared)
 proxy_http_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 wsgi_module (shared)
Syntax OK

我用了

 a2dismod log_config, a2dismod log, a2dismod log_config_module, a2dismod mod_log_config , a2dismod mod_log 

我总是得到

 ERROR: Module log_config does not exist!

我无法更新Apache,而且我是sudoer。

log_config_module是静态模块。 如果模块是静态的,则表示已被编译。没有简单的方法就可以添加/删除它们而无需重新编译。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM