OpenLdap数据库DB_CONFIG参数配置

论坛 期权论坛 脚本     
匿名技术用户   2020-12-22 18:26   75   0

进入/openldap2.3.43/var/openldap-data目录,vi文件DB_CONFIG

1.在openldap2.4.41版本下,DB_CONFIG为DB_CONFIG.example,且两个地方都有该配置文件。:

/home/openldap/openldap2.3.43/var/openldap-data/DB_CONFIG.example /home/openldap/openldap2.4.41/etc/openldap/DB_CONFIG.example

2.修改文件内容如下

# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.1.2.4 2007/12/18 11:51:46 ghenry Exp $
# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases.
# See the Oracle Berkeley DB documentation
# <http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html>
# for detail description of DB_CONFIG syntax and semantics.
# Hints can also be found in the OpenLDAP Software FAQ
# <http://www.openldap.org/faq/index.cgi?file=2>
# in particular:
# <http://www.openldap.org/faq/index.cgi?file=1075>
# Note: most DB_CONFIG settings will take effect only upon rebuilding
# the DB environment.
# one 0.25 GB cache
set_cachesize 0 536870912 1
# Transaction Log settings
set_lg_regionmax 10485760
set_lg_max 104857600
set_lg_bsize 20971520

# Automatically remove log files that are no longer needed.
set_flags DB_LOG_AUTOREMOVE
# Note: special DB_CONFIG flags are no longer needed for "quick"
# slapadd(8) or slapindex(8) access (see their -q option).

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP