nginx模块报错。
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
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
回复 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)
回复 1# squall1
你的操作系统是什么呢?
我定位了一下,这是获取本地IP地址的代码。
先按网卡接口名获取本机IP地址,如果失败,再通过主机名来获取本机IP地址。
先确认一下为啥通过网卡接口名不能获取到本机IP地址吧。
可以把 ifconfig -a 的输出贴一下。