← 返回命令列表

Linux command

a2disconf 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Disable

sudo a2disconf [configuration_file]

Example

sudo a2disconf -q [configuration_file]

Example

sudo a2disconf -p [configuration_file]

说明

a2disconf is a Debian-specific utility that disables Apache2 configuration files by removing symbolic links from /etc/apache2/conf-enabled. It works alongside a2enconf, which enables configurations. The tool silently succeeds if the specified configuration is already disabled, making it safe for use in scripts. After disabling a configuration, Apache must be restarted or reloaded for changes to take effect.

参数

-q, --quiet
Don't show informative messages
-m, --maintmode
Enables maintainer mode; the program invocation is effectuated automatically by a maintainer script
-p, --purge
When disabling a configuration, purge all traces from the internal state database

FAQ

What is the a2disconf command used for?

a2disconf is a Debian-specific utility that disables Apache2 configuration files by removing symbolic links from /etc/apache2/conf-enabled. It works alongside a2enconf, which enables configurations. The tool silently succeeds if the specified configuration is already disabled, making it safe for use in scripts. After disabling a configuration, Apache must be restarted or reloaded for changes to take effect.

How do I run a basic a2disconf example?

Run `sudo a2disconf [configuration_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -q, --quiet do in a2disconf?

Don't show informative messages