zoukankan      html  css  js  c++  java
  • libc.so.6 误删除丢失急救办法

    libc.so.6 误删除

    # ln -s 
    /bin/ln: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory  
    ...无语, ln命令不能用了。
    尝试cp
    ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
     
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    mv....
     
    history.....
    /bin/history: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory  
    几乎所有指令都不能用了,生产服务器哈,心情100度的紧张, 此时什么也别干抽根烟静一静
    开一个新的ssh ,新的SSH也无法连接~,也就是说,如果当前SSH一旦关闭,系统就完全不能用了无人能救!! 当前这个SSH连接是最后一个挽救系统的机会。
     
    默默的查起了资料,还真找到靠谱的方法()
    # LD_PRELOAD=/lib64/libc-2.12.so ln -s libc-2.12.so libc.so.6 
    执行完立马恢复了
    此时感觉敲个ls 都很爽
     
     
    总结:  /lib64/libc.so.6 是系统底层一个很重要的库,不能动,系统库尤其是生产环境不准动,看都禁止看,太吓人了!
     
    改行去放羊
  • 相关阅读:
    System.StringOfChar 反复字符
    System.Concat 连接字符串
    学习 TList 类的实现[5]
    raise 语句: 抛出异常
    System.Move 移动内存块
    学习 TList 类的实现[6]
    System.Pos 搜索子串的位置
    System.FillChar 填充字节
    学习 TList 类的实现[4]
    不停止的认识我们自己。。。。
  • 原文地址:https://www.cnblogs.com/musen/p/15512279.html
Copyright © 2011-2022 走看看