#停止openldap
systemctl stop slapdsystemctl disable slapd
#卸载yum -y remove openldap-servers openldap-clients
#删除残留文件
rm -rf /var/lib/ldap
//删除ldap用户userdel ldap
#删除openldap目录rm -rf /etc/openldap