现象:客户报障ssh没法登录。提示/bin/bash No such file or directory html
排查:进入单用户模式 linux16 行ro替换 rw init=/sysroot/bin/sh Ctrl +X 进入后linux
--切换根目录报错:命令:chroot /sysroot 报错:chroot: failed to run command '/bin/sh': No such file or directory bash
可能缘由:命令所需的库文件丢失,或者目录丢失。ssh
经过正常系统检查命令所需库文件路径:ldd /bin/shspa
找到缘由:库文件目录丢失。(经过正常主机对比,该目录为软链接 ) .net
对比正常主机:3d
查看故障主机/usr/lib64是否存在。若是存在从新建立软链接修复htm
cd 到 /sysroot/目录建立链接blog
从新reboot 启动系统后正常it
ldd命令理解:
https://www.cnblogs.com/Spiro-K/p/6378576.html
https://blog.csdn.net/qq_26819733/article/details/50610129