免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
31 [报告]
发表于 2009-09-29 14:06 |显示全部楼层
好的,太谢谢你了,
   我试试一下先。

论坛徽章:
0
32 [报告]
发表于 2009-09-29 15:02 |显示全部楼层
实在不好意思,fish兄,又要麻烦你,
  我在配完storaged的WEB server但它好像起不来,我php-test是没有问题的:
[root@localhost html]# php fdfs_test.php
group_name=group2, remote_filename=M00/00/00/MwCowErCTgQAAAAAAAASOXAk5V007.gif
file url: ?token=42e1dd90765208e71fcf2407f4ef36a1&ts=1254247940
array(1) {
  [0]=>
  array(4) {
    ["ip_addr"]=>
    string(12) "192.168.0.51"
    ["port"]=>
    int(23000)
    ["store_path_index"]=>
    int(0)
    ["sock"]=>
    int(-1)
  }
}
group_name=group2, remote_filename=M00/00/00/MwCowErCTgQAAAAAAAASOVsPXgg70.php
storage server 192.168.0.51:23000
download file to file success, file size: 4665
download file to buff success, file size: 4665, buff size:4665
download file to file success, file size: 4665
set metadata result: 0
array(5) {
  ["Author"]=>
  string(3) "Tom"
  ["color"]=>
  string(7) "#c0c0c0"
  ["font"]=>
  string(4) "Aris"
  ["height"]=>
  string(3) "768"
  ["width"]=>
  string(4) "1024"
}
delete file result: 0
[root@localhost html]#

  但是我:
[root@localhost html]# netstat -an | grep -w 80
[root@localhost html]#
   进不去。
   我本机telnet local.host也联不上:
[root@localhost html]# telnet local.host 80
Trying 59.37.53.10...
Connected to local.host (59.37.53.10).
Escape character is '^]'.
Connection closed by foreign host.
[root@localhost html
   是什么问题呢?我的fdfs_storaged 是正常启用的了

论坛徽章:
0
33 [报告]
发表于 2009-09-29 15:04 |显示全部楼层
在logs里面也没有提示HTTP有问题:
storaged:
[2009-09-30 02:09:15] INFO - FastDFS v1.21, base_path=/home/data/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=group2, network_timeout=20s, port=23000, bind_addr=, max_connections=256, heart_beat_interval=30s, stat_report_interval=600s, tracker_server_count=1, sync_wait_msec=200ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time: 23:59, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=60s, thread_stack_size=1024 KB, check_file_duplicate=0, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0
[2009-09-30 02:09:15] INFO - file: tracker_client_thread.c, line: 191, successfully connect to tracker server 192.168.0.53:22122
    trackerd:
[2009-09-25 14:48:42] INFO - FastDFS v1.21, base_path=/home/data/fastdfs, network_timeout=20s, port=23000, bind_addr=, max_connections=256, store_lookup=0, store_group=, store_server=0, store_path=0, reserved_storage_space=1024MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=100s, thread_stack_size=1024 KB
[2009-09-25 14:48:42] ERROR - file: ../common/sockopt.c, line: 710, bind port 23000 failed, errno: 98, error info: Address already in use.
[2009-09-25 14:52:58] CRIT - file: fdfs_trackerd.c, line: 246, catch signal 15, program exiting...
[2009-09-25 14:53:00] INFO - exit nomally.

论坛徽章:
0
34 [报告]
发表于 2009-09-29 15:41 |显示全部楼层
fish兄,所有都已经是起来了,web server 也是起来了,
    但是我用IE还是看不到,trackerd跟storaged server都看不到,
  想问一问,是什么问题呢?
    还是我那里没有配好??

论坛徽章:
0
35 [报告]
发表于 2009-09-29 16:46 |显示全部楼层
如果fish兄有MSN请加一下我:ken.29@live.cn
                              QQ:48097050

论坛徽章:
0
36 [报告]
发表于 2009-10-15 10:12 |显示全部楼层
现在一切使用正常了,
   不过还想问一问,在fastdfs里面,我要重启,或者关闭http,我要怎么做呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP