機房停電,導致LDAP Server 的Service通通沒有起來,出現下面這一堆訊息

Checking configuration files for slapd: bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered. config file testing succeeded

簡單的說就是LDAP Service沒有正常的關閉,現在沒辦法啟動

 

用下列方式應該就可以解決 :(在CentOS下)

# /etc/init.d/ldap stop
# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap
#/etc/init.d/ldap start

創作者介紹

Something's NoteBook on Cloud

yuic123 發表在 痞客邦 PIXNET 留言(0) 人氣()