如何判断OpenLDAP是否安装在CentOS上,并testing它是否正常工作?

有什么简单的方法来做到这一点?

yum list installed 

会显示你是否安装。

 chkconfig --list 

会告诉你如果服务正在运行(可能被称为slapd)

configuration将会在/ etc / openldap / *之类的地方,你可以看到它是否被configuration。

通过查询类似于以下内容来testing它:

 ldapsearch -x -b 'dc=mycompany,dc=com' 'objectclass=*' 

但是您可能必须知道如何(应该)configuration知道要search的内容。

http://home.roadrunner.com/~computertaijutsu/ldap.html

另一种方法是:

 pidof slapd 

如果这个结果是一个整数(进程的PID),那么你有一个正在运行的OpenLDAP服务器。 如果没有输出,它没有运行。