免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3316 | 回复: 2
打印 上一主题 下一主题

[FastDFS] nginx模块报错。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-08 13:30 |只看该作者 |倒序浏览
ngx_http_fastdfs_set pid=27967
[2011-03-08 13:26:42] [fly]ERROR - file: ../common/sockopt.c, line: 1607, call gethostbyname fail, error no: 2, error info: No such file or directory[/fly]

[2011-03-08 13:26:42] INFO - response_mode=redirect, base_path=/home/fastdfs_storge, connect_timeout=2, network_timeout=5, tracker_server_count=1, storage_server_port=23000, group_name=group1, if_alias_prefix=, local_host_ip_count=1, need_find_content_type=0, default_content_type=, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0, storage_sync_file_max_delay=86400s

谢谢

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2011-03-08 18:14 |只看该作者
回复 1# squall1

你的操作系统是什么呢?
我定位了一下,这是获取本地IP地址的代码。
先按网卡接口名获取本机IP地址,如果失败,再通过主机名来获取本机IP地址。
先确认一下为啥通过网卡接口名不能获取到本机IP地址吧。
可以把 ifconfig -a 的输出贴一下。

论坛徽章:
0
3 [报告]
发表于 2011-03-09 14:18 |只看该作者
回复 2# happy_fish100


是红帽5.1

我的eth0没有设置IP,eth1有设置IP

[root@mysql02 ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1E:4F:3E:01:1D  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 Memory:f8000000-f8012100

eth1      Link encap:Ethernet  HWaddr 00:1E:4F:3E:01:1F  
          inet addr:192.168.147.11  Bcast:192.168.147.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:4fff:fe3e:11f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1747369172 errors:0 dropped:184 overruns:0 frame:0
          TX packets:1741458707 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:516811029049 (481.3 GiB)  TX bytes:194397547415 (181.0 GiB)
          Interrupt:16 Memory:f4000000-f4012100

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:836011 errors:0 dropped:0 overruns:0 frame:0
          TX packets:836011 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:65512557 (62.4 MiB)  TX bytes:65512557 (62.4 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP