9/10/2023 0 Comments Ubuntu postgresql client 13![]() ![]() Postgressql is probably a daemon started at boot? If so it makes sense to put it here. If an application uses a subdirectory, allĪrchitecture-dependent data exclusively used by the application must Applications may use a single subdirectory under usr/lib includes object files, libraries, and internal binaries thatĪre not intended to be executed directly by users or shell usr/local rather than /usr unless it is being installed to replace orĪn executable installed from system software should never go to anything local. Locally installed software must be placed within Programs and data that are shareable amongst a group of hosts, but notįound in /usr. Overwritten when the system software is updated. The /usr/local hierarchy is for use by the system administrator when usr/local/bin/ is not for system software but for your own software (basically anything with "local" in must never be touched by the system. You are misunderstanding the word "local". As a user you are free to put your data wherever you want and it is mostly a matter of opinion. the FHS is a standard created mostly for use by distributions. So it makes perfect sense to put a database's data into /var/lib// directory but. In short: /var/lib/ is for data that is used locally. Different distributions may use different names, of var/lib/ is the location that must be used for all distribution Only be present if the application in question is included in the Required subdirectory, /var/lib/misc, which is intended for stateįiles that don't need a subdirectory the other subdirectories should ![]() Not be logging output, and should not be spooled data.Īn application (or a group of inter-related applications) must use a State information should generally remain valid after a reboot, should Invocations and between different instances of the same application. State information is generally used to preserve the condition of anĪpplication (or a group of inter-related applications) between Modify files in /var/lib to configure a package's operation. Run, and that pertains to one specific host. State information is data that programs modify while they This hierarchy holds state information pertaining to an application or In the Filesystem Hierarchy Standard, `/var/lib/ is stated as (in italic the most important part): Why do I ask this question? Because without order and structure, it is difficult to remember the location of programs you use everyday. Yet, they place it in /usr/lib, which I have no idea why. And thus since postgresql is intended for system-wide use, it should be available in /usr/local/bin. and /usr/local/bin should be for programs not included in the distribution but available for system-wide use. usr/bin is for programs included in the distribution. But why /var/lib in particular?įurther, I believe that /bin is for programs required for boot. However, why place the database storage area in /var/lib? I can understand /var, since that is the place for nonstatic data and databases are nonstatic. ![]() After all, /etc is where configuration files are stored in a linux system. Now I can understand why nf and other configuration files are stored in /etc/postgresql/9.3/main. The data directory where all the database clusters will be stored at: /var/lib/postgresql/9.3/mainĪnd the configuration file at: /etc/postgresql/9.3/main/nf When you install postgresql on 14.04, it sticks the main server program postgres at: /usr/lib/postgresql/9.3/bin/postgres ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |