2016-09-29 33 views
0

我用命令的apachectl -M在Apache 2.2禁用模塊,我禁用了所有不必要的MODS的,現在我想禁用Apache日誌,我得到:無法在Ubuntu

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。

回答

2

log_config_module是靜態模塊。如果模塊是靜態的,那意味着它被編譯進來。沒有簡單的方法來添加/刪除它們而不用重新編譯。