[英]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.