启动cacao及实例:

[root@rusky bin]# cd /home/ldap/iamldap/dsee6/cacao_2/cacao/bin
[root@rusky bin]# ./cacaoadm start
[root@rusky bin]# cd /home/ldap/iamldap/ds6/bin/
[root@rusky bin]# ./dsadm start /home/ldap/iamldap/var/dscc6/dcc/ads
Waiting for Directory Server instance '/home/ldap/iamldap/var/dscc6/dcc/ads' to start...
Directory Server instance '/home/ldap/iamldap/var/dscc6/dcc/ads' started: pid=
[root@rusky bin]# ./dsadm start /home/ldap/amsldap
Waiting for Directory Server instance '/home/ldap/amsldap' to start...
Waiting for Directory Server instance '/home/ldap/amsldap' to start...
Directory Server instance '/home/ldap/amsldap' started: pid=6330

相关参数说明:

set-server-prop        Sets server property values
get-server-prop        Displays server property values 
-D USER_DN, --user-dn USER_DN
Binds as USER_DN (Default: $LDAP_ADMIN_USER or cn=Directory Manager)
-P PORT, --secure-port PORT
Connects to Directory Server on secure port PORT
-e,--unsecured
Connects over LDAP with no secure connection (Enabled if $DIRSERV_UNSECURED is set)
-i,--no-inter
Does not ask for confirmation
-p PORT, --port PORT
Connects to Directory Server on PORT (Default: $DIRSERV_PORT or 389)
-w FILE, --pwd-file FILE
Binds with pwd read from FILE (Default:$LDAP_ADMIN_PWF or prompt for pwd)
-j,--reject-cert
Does not ask for confirmation before rejecting non-trusted server certificates (for this session only)

查看缓存:

[root@rusky bin]# ./dsconf get-server-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 db-cache-size
db-cache-size : 32M

设置数据库缓存:

[root@rusky bin]# ./dsconf set-server-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 db-cache-size:128M
Directory Server must be restarted for changes to take effect.

查看条目缓存:  

[root@rusky bin]# ./dsconf get-suffix-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 dc=test entry-cache-size
entry-cache-size : 10M

设置条目缓存:  

[root@rusky bin]# ./dsconf set-suffix-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 dc=test entry-cache-size:20M

  

  

LDAP缓存命令的更多相关文章

  1. Composer更新与清除缓存命令

    一.更新命令 composer self-update --preview 二.清除缓存命令 composer clearcache 操作如下图所示:

  2. Jedis客户端操作redis缓存命令详解

    1.对value操作的命令 exists(key):确认一个key是否存在 del(key):删除一个key type(key):返回值的类型 keys(pattern):返回满足给定pattern的 ...

  3. 【LDAP】LDAP常用命令解析

    ldapadd -x   进行简单认证-D   用来绑定服务器的DN-h   目录服务的地址-w   绑定DN的密码-f   使用ldif文件进行条目添加的文件例子 ldapadd -x -D &qu ...

  4. LDAP常用命令解析

    OpenLDAP常用命令讲解: ldapadd      -x   进行简单认证      -D   用来绑定服务器的DN      -h   目录服务的地址      -w   绑定DN的密码    ...

  5. 清除linux缓存命令

    命令 #sync #echo 3 > /proc/sys/vm/drop_caches 查看内存情况: # more /proc/meminfo Kernels 2.6.16 and newer ...

  6. 在Firefox浏览器中关闭缓存.命令

    在Firefox中关闭缓存 看看这里 在地址栏输入:about:config 然后在过滤器中输入:browser.cache.disk.enable 解释:When a page is loaded, ...

  7. ldap常用命令

    单独查询用户信息 ldapsearch -D "cn=admin,dc=hrbeu,dc=edu,dc=cn" -b "ou=hbr,dc=hrbeu,dc=edu,dc ...

  8. 如何清除DNS缓存,使用cmd命令清理DNS缓存方法

    如何清除DNS缓存,使用cmd命令清理DNS缓存方法 有时候电脑突然上不了网,或者存在某些网站打不开的情况,但别的网站又可以打开,解决办法需要清除DNS缓存,那么如何清除DNS缓存呢,最常用的方法就是 ...

  9. ldap命令的使用

    转自:http://blog.chinaunix.net/uid-20690190-id-4085176.html 增:ldapadd 1)选项: -x   进行简单认证 -D   用来绑定服务器的D ...

随机推荐

  1. linux学习笔记<基本知识普及>

    linux上分区类型 主分区 : 最多自能有4个 扩展分区 :  最多只能有1个 主分区加扩展分区最多只能有4个 不能写入数据,只能包含逻辑分区 逻辑分区 挂载(安装linux系统时若自定义分区,需注 ...

  2. grep,awk和sed

    commons: all of them could use regular-expression to match the result. differences: 1)grep: search f ...

  3. c 单链表反转(不添加新结点空间)

    最近复习考研,加上一直都将"算法"放在很高的位置,所以,蛮重视算法的.不多说了,其实这个问题,不难理解的. 主要代码: //反转单链表. void reverse(linklist ...

  4. Linux下快速搭建DNS服务器

    一.术语解释:TTL Time To Live 缓冲保留时间ORIGIN 属于哪个域@ 代指域IN 开头需要空格SOA 一行记录类型的开始参数:forwarders {} 指向自己无法解析的域名跳转到 ...

  5. 批处理备份和恢复mysql数据库

    备份 set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%" md "D: ...

  6. Knockoutjs官网翻译系列(三) 使用Computed Observables

    书接上回,前面谈到了在视图模型中可以定义普通的observable属性以及observableArray属性实现与UI元素的双向绑定,这一节我们继续探讨第三种可实现绑定的属性类型:computed o ...

  7. PULL生成XML文件

    package xmlpulldemo; import java.io.FileNotFoundException; import java.io.FileOutputStream; import j ...

  8. QT5-控件-QTimeEdit和QTime

    #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QTimeEdit> #i ...

  9. 工作流activiti-01个人小结

    最近公司需要开发工作流 使用的是activiti  个人拿着官方的User Guide 摸索了好几天 现做个小结: 对公司的小型OA开发一般用到如下几点: 1.依据客户业务得到业务流程图  可以是xm ...

  10. jquery mobile将页面内容当成弹框进行显示

    注:必须使用相对应版本的jquery mobile css.不然无法正常显示 <div data-role="page" id="pageone"> ...