artifactory - Artifactory 配置为错误地将二进制文件存储在两个地方(?)以及如何回到一个
问题描述
同时拥有 storage.properties 和 binarystore.xml,Artifactory 是否有可能同时获取这些文件并将二进制文件存储在 Derby(如 storage.properties 中指定)和文件系统中(如二进制存储.xml)?
当然,根据磁盘使用情况似乎如此。解决方案是否只是删除 storage.properties,重新启动,然后 Artifactory 将只使用文件系统?
版本 6.17.0(专业版)
binarystore.xml 内容:
<config version="v1">
<chain template="file-system"/>
<provider type="file-system" id="file-system">
<binariesDir>/some/path/active/data/filestore</binariesDir>
</provider>
</config>
storage.properties 内容:
type=derby
url=jdbc:derby:{db.home};create=true
driver=org.apache.derby.jdbc.EmbeddedDriver
解决方案
从 Artifactory 4.6 及更高版本开始,Artifactory 不使用 storage.properties 文件来获取 binarystore 配置,而是使用 binarystore.xml 文件,因此您可以备份 storage.properties 文件并将其删除并重新启动。另外,请确保您在 db.properties 文件中有正确的详细信息。因为 Artifactory 将从 db.properties 文件中读取数据库配置。
推荐阅读
- javascript - Nodejs事件循环?
- function - 从 Go 中的查找表创建对象中变量的函数
- apache-flink - 阅读命令 flink run -m yarn-cluster 的源代码
- python - 在路径问题上移动敌人 Pygame - 塔防游戏
- java - 尝试构建 Ping 功能,当单击按钮时,将向用户返回一个对话框,显示主机是否已启动
- azure - VSCode - 部署 Azure 应用 - 找不到任务错误
- ios - 在 SwiftUI 卡片视图中将 UIImage 裁剪到跨设备的特定区域
- angular - 如何在代码中创建角度模板引用
- laravel - Laravel Spatie 的媒体库:如何下载多个文件并将它们压缩到一个目录中
- html - 如何从 regex101 任务 8 中的字符串中去除所有 HTML 标签?