OpenLdap数据库DB_CONFIG参数配置

进入/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).
 

猜你喜欢

转载自blog.csdn.net/linzhi0404/article/details/86219210