/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such fi
情况说明:ntpd服务无法启动
[[email protected] yum.repos.d]# rpm -qa|grep ntp
ntpdate-4.2.6p5-1.el6.centos.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
ntp-4.2.6p5-1.el6.centos.x86_64
[[email protected] yum.repos.d]# service ntpd start
/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
解决办法:
[[email protected] yum.repos.d]#
[[email protected] yum.repos.d]# find / -name libc.so.6
/home/soft/glibc-2.14.1/build/libc.so.6
/home/glibc_update/glibc-2.14/build/libc.so.6
/lib64/libc.so.6
[[email protected] yum.repos.d]#
[[email protected] yum.repos.d]# ll /lib64/libc.so.6
lrwxrwxrwx. 1 root root 19 3月 12 11:31 /lib64/libc.so.6 -> /lib64/libc-2.12.so
[[email protected] yum.repos.d]#
不知道怎么,ll 查看了一下 /lib64/libc.so.6 库文件,居然好了,能启动ntpd服务了
[[email protected] yum.repos.d]# service ntpd start
正在启动 ntpd: [确定]
但是用‘ ntpq -p’命令去查看同步情况时提示:No association ID's returned
[[email protected] yum.repos.d]# ntpq -p
No association ID's returned
于是查看系统日志,发现是ntp的配置文件的文件;
遂查看/etc/ntp.conf配置文件,56行少了一个字母s
更改后,重启ntpd服务,启动成功,并且时间同步成功;