How to recover after deleting the symbolic link libc.so.6?

前端 未结 8 2194
孤城傲影
孤城傲影 2020-12-24 13:12

In our server the symbolic link to libc.so.6 has been deleted. Now none of the binaries in the system work. To fix this, I tried:

/bin/ln -s /li         


        
8条回答
  •  忘掉有多难
    2020-12-24 13:34

    Thanks you very much for below answer. It worked well with root ID. We unlink libc.so.6 to link with higher version but suddenly after unlink libc.so.6 server become unresponsive. ln -s command was not working. No other users were able to ssh to server. But when we ran below command it worked. (with libc version exist on server) server started to behave normally.

    Below one is correct command and life saving too....

    LD_PRELOAD=/lib/libc-2.17.so ln -s /lib/libc-2.17.so /lib/libc.so.6
    

    Note: The actual version depends on your library

提交回复
热议问题