簡體   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