背景
重命名了 libc.so.6 文件
<pre name="code" class="plain">[root@myheart-6 test]# cd /lib64
[root@myheart-6 lib64]# mv libc.so.6 lib.so.6.backup
导致shell很多命令无法执行
[root@myheart-6 lib64]# ls
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
[root@myheart-6 lib64]# make
make: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
<pre name="code" class="plain">[root@myheart-6 lib64]# ln
ln: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
救急方法
[root@myheart-6 lib64]# ldconfig