跟踪文件的时候发现出现了nscd错误,就是找不到文件:
bind(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
进入run文件发现根本就不存在nscd这个文件夹。
于是翻阅了一下google英文版里面找到了答案:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/3365
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314892
终于明白是因为这个nscd服务没有安装,于是安装nscd,然后启动服务:
[html]
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, sun_path="/var/run/nscd/socket"}, 110) = 0
sendto(3, "2\0\0\020\0\0\0n\0\0\0mysql/tcp\0", 22, MSG_NOSIGNAL, NULL, 0) = 22
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
read(3, "2\0\0\01\0\0\06\0\0\04\0\0\0\0\0\0\0f352\0\0", 24) = 24
readv(3, [{"mysql\0tcp\0", 10}], 1) = 10
close(3) = 0
[/html]