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

标签 apache ubuntu logging module

我使用了命令 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/

相关文章:

java - 如何对日志上的消息进行单元测试?

apache - 如何让虚拟主机与 XAMPP 一起工作?

java - 在ubuntu 10.10上安装jdk1.7.0

node.js - 对 BeagleBone 进行编程以打开 LED,出现 NodeJS 错误

java - 如何跨所有执行上下文在 play 框架日志中记录请求 ID

java - 通过注释快速添加日志记录(例如用于 getter/setter 的 lombok) - 有可用的解决方案吗?

ruby-on-rails - 使用 Phusion Passenger、Apache 和 Rails 进行 Assets 预编译

php - WordPress上传图片报错 "file is empty"

apache - 用 mod_expires 覆盖缓存头

linux - mhddfs 不支持文件拆分.. 如果文件大小超过单个存储设备的限制