linux - 为什么将日志存储在 root 中不正确?
问题描述
我被指示永远不要将我的日志存储在“/”中。我只是想知道是否有人可以给我这背后的逻辑?这可能听起来很愚蠢,但我觉得理解是我提高的必要条件。
I have moved the logs, and they are not in the root, I was just looking to get a greater understanding of why?
解决方案
root as in/
是文件系统的根目录,并且有一个预定义的结构和顺序。
root/root
是root
用户的主文件夹,因此它具有不同的用途。
虽然您可以将日志存储在大多数文件夹中,但建议您不要这样做,因为普遍接受的标准是日志位于 /var/log/` 文件夹中,再次在类别/文件夹中进一步结构化
推荐阅读
- vb.net - 如何在 vb.net 中使用 count、distinct、where、like、clause 进行查询
- outlook - 如何防止用户在 Web 版 Outlook 中从共享邮箱发送电子邮件
- android - 我可以使用 SVG 资产自动填充多个 ImageView 吗?
- image - CachedNetworkImage 仅显示占位符,不会在 Flutter 聊天应用中加载图像
- r - 以各种格式导出/下载闪亮的传单地图?
- c# - Unity 3D 在 Inputfield 中输入 Number 并获取事件
- azure - 尝试检索托管服务标识凭据时 Azure Java 程序阻塞
- java - 尝试使用 firepropertychange、propertychangesupport 更改值
- javascript - AG-Grid 'Flat' 列组
- python - H2o Packge 错误:无法执行助推器操作:更新程序在节点 /127.0.0.1:54321 上处于非活动状态