Berkeley数据库的DB_CONFIG文件位于Unix中的哪里?

发布于 2024-12-19 08:18:50 字数 276 浏览 6 评论 0原文

我是 Berkeley db 的新手,我已经安装了版本“db-4.8.30.NC.tar.gz”,但现在我想找到配置 通过使用配置文件来获取信息。

我在文档中读到该文件名为 DB_CONFIG 并且它存在于 数据库主目录。

在我的系统中,我已将 tar 文件压缩到 /usr/db-4.8.30.NC 下,但我仍然没有找到 DB_CONFIG 文件。

好吧,我试图找到 DB_CONFIG 文件在 Unix 中的位置,但我找不到它。

你可以帮我吗?

提前致谢

i'm new to Berkeley db, i have installed the version "db-4.8.30.NC.tar.gz" but now i would like to find the configuration
information by using the configuration file.

I've read in the documentations that this file is named DB_CONFIG and it exists in the
database home directory.

In my system, i have uzipped the tar file under /usr/db-4.8.30.NC but i still haven't found
the DB_CONFIG file.

Well, i'm trying to find where the DB_CONFIG file is located in Unix, but i can't find it.

May you please help me?

Thanks, in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悍妇囚夫 2024-12-26 08:18:50

您(或系统管理员)手动编写 DB_CONFIG 文件来修改任何可以在运行时覆盖的 DB_EN​​V 环境变量。

DB_CONFIG文件存放在db_home目录下; docs/programmer_reference/env_naming.html 文件包含完整的详细信息,但您可以在 DB_EN​​V->open() 中传递显式 db_home 参数code> 调用或依赖 DB_HOME 环境变量来定位 DB_CONFIG 文件(如果存在)。如果系统管理员合理地希望按照自己的意愿移动存储,那么环境变量方法可能会很好;如果您不想让系统管理员因管理存储的详细信息而烦恼,那么特定路径名方法可能会很好。

You (or a system administrator) writes the DB_CONFIG file by hand to modify any of the DB_ENV environment variables that can be over-ridden at runtime.

The DB_CONFIG file is stored in the db_home directory; the docs/programmer_reference/env_naming.html file has full details, but you can either pass an explicit db_home parameter in the DB_ENV->open() call or rely on the DB_HOME environment variable to locate the DB_CONFIG file, if any exists. The environment variable approach might be nice if the system administrator would reasonably want to move the storage around as they wish; the specific path name approach might be nice if you don't want to bother your system administrators with details of managing your storage.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文