系统相关
首页 > 系统相关> > ldap卸载后22端口连接不上,yum也不能使用

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远程就可以连接了

参考链接:

 

https://blog.csdn.net/woailyoo0000/article/details/79782986

https://www.cnblogs.com/lemon-le/p/6207054.html

   

标签:libsasl2,22,sshd,不上,so.2,yum,ldap,rpm,2.4
来源: https://www.cnblogs.com/zh-dream/p/12890345.html