今天启动虚拟机,ssh服务起不来,提示如下:

Starting sshd: /usr/sbin/sshd: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory

导致这个问题是我昨天 rpm -e openssl –nodeps强制卸载openssl导致的,都怪自己。

 

可以查看sshd的库 命令:ldd  /usr/sbin/sshd 

看到libcrypto.so.10是找不到指定文件的

在 /etc/ld.so.conf 的配置文件里需要指定程序去哪里找所需的共享库 

 

解决方法:重新安装openssl的包即可

rpm -ivh openssl-1.0.0-20.el6-* “*”根据服务器系统版本自行决定rpm包类型

 

谨记:不要随意删除软件包

 

相关文章:

  • 2021-04-12
  • 2021-05-19
  • 2021-09-02
  • 2021-06-25
  • 2021-12-29
  • 2022-02-20
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-09-06
相关资源
相似解决方案