hopeless-dream

导航

ldap卸载后22端口连接不上,yum也不能使用

yum报错:liblber-2.4.so.2: can not open share object file : no such file or directory

问题:由于ldap更换版本,以防版本冲突卸载了原来的,之后出现了很多问题。ssh连接不了,yum不能用,莫名心慌。

解决:参考网上教程,又强制安装了一版ldap

1.先下载包

wget http://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6.4/x86_64/updates/fastbugs/openldap-2.4.23-32.el6_4.1.x86_64.rpm

2.    rpm -v --checksig ./openldap-2.4.23-32.el6_4.1.x86_64.rpm 

3.    rpm -ivh --force --nodeps openldap-2.4.23-32.el6_4.1.x86_64.rpm 

再查看yum命令已经可以使用。

如果执行yum仍报错:则缺什么包,在同路径下用类似包指向缺少的包
如:缺少:libsasl2.so.2 : can not open share object file
解决:
whereis libsasl2.so.2
ln -s libsasl2.so.3  libsasl2.so.2

centos7版本下,sshd文件位置:etc/ssh/sshd_config  

重启sshd : systemctl restart  sshd.service

查看22端口状态: netstat  -an | grep  22    ,已经开始有监听,再xshell远程就可以连接了

 
 

posted on 2020-05-14 17:55  hopeless-dream  阅读(579)  评论(0编辑  收藏  举报