PHP学习_PHP技术_PHP网站建设_PHP程序员专注于PHP技术研究及学习

Adophper » 服务器 » nscd错误:bind(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)

nscd错误:bind(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)

此文被围观4247日期: 2013-04-23 分类 : 服务器  标签:  ······
跟踪文件的时候发现出现了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]

本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2018adophper.com All Rights Reserved.