我使用了命令 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 是静态模块。如果模块是静态的,则意味着它已被编译。没有重新编译的情况下没有简单的方法来添加/删除它们。
关于apache - 无法在 Ubuntu 上禁用 Apache 2.2 上的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39767632/