免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: Jney402
打印 上一主题 下一主题

[FastDFS] 请问fastDFS的 tracker 和 storage 的http 怎么配置和启动 [复制链接]

论坛徽章:
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
51 [报告]
发表于 2009-09-29 11:52 |只看该作者

回复 #50 ouqz 的帖子

你上传一个文件后,可以拿到文件的URL,把文件链接拿到浏览器中去打开。

论坛徽章:
0
52 [报告]
发表于 2009-09-29 11:59 |只看该作者
唉~!
  也是无法显示的,难道也就只有我是这样子的吗?
    我telnet 过这个端口也是进不去的,我想,应该是那里有问题,只不过我的知识不够我,搞不明白那里有问题,所以也就只能请fish兄帮帮忙

论坛徽章:
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
53 [报告]
发表于 2009-09-29 12:01 |只看该作者

回复 #52 ouqz 的帖子

本机telnet 80端口也不行么?
比如:
telnet localhost 80

论坛徽章:
0
54 [报告]
发表于 2009-09-29 12:03 |只看该作者
[root@localhost html]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

HTTP/1.1 400 Bad Request
Content-Type: text/html
Connection: close
Date: Tue, 29 Sep 2009 04:04:25 GMT
Content-Length: 134

<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
Invalid method in request<P>
</BODY></HTML>
Connection closed by foreign host.

好像IP不对

论坛徽章:
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
55 [报告]
发表于 2009-09-29 12:05 |只看该作者

回复 #54 ouqz 的帖子

这就对了。
本机访问80端口是Ok的。
上传文件后,会获得文件链接,你用curl或wget在服务器上取一下呢。
例如:wget  -S file_url

论坛徽章:
0
56 [报告]
发表于 2009-09-29 12:18 |只看该作者
[root@localhost html]# wget  -S file_url
--12:18:15--  http://file_url/
Resolving file_url... 59.37.71.85
Connecting to file_url|59.37.71.85|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--12:18:21--  (try: 2)  http://file_url/
Connecting to file_url|59.37.71.85|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--12:18:24--  (try: 3)  http://file_url/
Connecting to file_url|59.37.71.85|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
   它好像是访问到其它地址了

论坛徽章:
0
57 [报告]
发表于 2009-09-29 12:37 |只看该作者
不好意思,搞错了:
[root@localhost html]# wget  -S ?token=5a33cb459b526413b708871f52ea40e0&ts=1254196655
[1] 4585
[root@localhost html]# --12:36:57--  ?token=5a33cb459b526413b708871f52ea40e0
Connecting to 192.168.0.53:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 302 Found
  Connection: close
  Location: ?token=5a33cb459b526413b708871f52ea40e0
  Connection: keep-alive
  Content-Length: 0
Location: ?token=5a33cb459b526413b708871f52ea40e0 [following]
--12:36:57--  ?token=5a33cb459b526413b708871f52ea40e0
Connecting to 192.168.0.51:0... failed: Connection refused.

[1]+  Exit 1                  wget -S ?token=5a33cb459b526413b708871f52ea40e0

论坛徽章:
0
58 [报告]
发表于 2009-09-29 12:38 |只看该作者
[root@localhost html]# wget  -S http://192.168.0.53:80/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0&ts=1254196655
[1] 4585
[root@localhost html]# --12:36:57--  http://192.168.0.53/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0
Connecting to 192.168.0.53:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 302 Found
  Connection: close
  Location: http://192.168.0.51:0/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0
  Connection: keep-alive
  Content-Length: 0
Location: http://192.168.0.51:0/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0 [following]
--12:36:57--  http://192.168.0.51:0/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0
Connecting to 192.168.0.51:0... failed: Connection refused.

[1]+  Exit 1                  wget -S http://192.168.0.53:80/group2/M00/00/00/MwCowErCNRAAAAAAAAASOWLTjPw71.gif?token=5a33cb459b526413b708871f52ea40e0

论坛徽章:
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
59 [报告]
发表于 2009-09-29 13:59 |只看该作者

回复 #58 ouqz 的帖子

storage server也需要启动web server。
tracker server ok了,你把storage server配置好就没问题了哦。

论坛徽章:
0
60 [报告]
发表于 2009-09-29 14:06 |只看该作者
好的,太谢谢你了,
   我试试一下先。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP