Berkeley数据库的DB_CONFIG文件位于Unix中的哪里?
我是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您(或系统管理员)手动编写
DB_CONFIG
文件来修改任何可以在运行时覆盖的DB_ENV
环境变量。DB_CONFIG
文件存放在db_home
目录下;docs/programmer_reference/env_naming.html
文件包含完整的详细信息,但您可以在DB_ENV->open()
中传递显式db_home
参数code> 调用或依赖DB_HOME
环境变量来定位DB_CONFIG
文件(如果存在)。如果系统管理员合理地希望按照自己的意愿移动存储,那么环境变量方法可能会很好;如果您不想让系统管理员因管理存储的详细信息而烦恼,那么特定路径名方法可能会很好。You (or a system administrator) writes the
DB_CONFIG
file by hand to modify any of theDB_ENV
environment variables that can be over-ridden at runtime.The
DB_CONFIG
file is stored in thedb_home
directory; thedocs/programmer_reference/env_naming.html
file has full details, but you can either pass an explicitdb_home
parameter in theDB_ENV->open()
call or rely on theDB_HOME
environment variable to locate theDB_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.