繁体   English   中英

Ubuntu 中的 /etc/apache2 和 /usr/sbin/apache2 有什么区别?

[英]What is the difference between /etc/apache2 and /usr/sbin/apache2 in Ubuntu?

我想知道/usr/sbin/apache2/etc/apache2之间到底有什么区别。 我有一个想法, /etc包含所有已安装的包和必要的配置文件,但/usr/sbin/apache2是我遇到的问题。 谁能帮我吗?

通常目录和其中的文件具有一定的含义:-

/etc - directory is for storing the configuration files.
/usr - /usr/bin - user's executable binary files
     - /usr/sbin - user's executable binary files that can only be run with root privileges.

因此 /usr/sbin/apache2 是 apache2 命令的完整路径,如 apache2 命令所在的位置及其二进制文件。 /etc 中所有与 apache2 相关的文件都是它的配置文件。 希望有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM