簡體   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