简体   繁体   English

软件配置文件,在Linux系统中应该放在哪里?

[英]Software configuration files, where should I put them in Linux systems?

I'm managing this open source project PM2 and I have a decision to take about where to put all configuration files. 我正在管理这个开源项目PM2 ,因此我决定将所有配置文件放在何处。

Currently I store all these files under $HOME/.pm2/ , but some user permissions can mess up with that logic. 目前,我将所有这些文件存储在$HOME/.pm2/ ,但是某些用户权限可能会使该逻辑混乱。

What is the folder that is common and exists to 100% of Arch/Debian/Ubuntu/Linux/BSD/Unix... based system, to store configuration files ? 存储基于配置文件的Arch / Debian / Ubuntu / Linux / BSD / Unix ...系统的100%通用文件夹是什么?

In Linux/Unix, many programs usually keep config in /etc/ and use subfolder in /var/ for other files. 在Linux / Unix中,许多程序通常将config保留在/ etc /中,并将/ var /的子文件夹用于其他文件。 See also on Wikipedia File System Hierarchy Standard 另请参见Wikipedia 文件系统层次结构标准

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

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