免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3566 | 回复: 2

[FastDFS] 请教:FastDFS v1.22如何配置客户端 [复制链接]

论坛徽章:
0
发表于 2009-10-28 11:43 |显示全部楼层
本人刚接触FastDFS,通过这两天看论坛,已经把tracker和storage已经配置成功了,http也配置成功了,关于client api不怎么理解,不知道怎么配置,还请配置过客户端的高手给点配置步骤,最好详细点的步骤,谢谢

操作系统:Redhat 5.3 x64
node1为tracker和storage
node2为storage


附录1:
[root@node1 php_client]# php fastdfs_test.php
PHP Notice:  Use of undefined constant FDFS_FILE_ID_SEPERATOR - assumed 'FDFS_FILE_ID_SEPERATOR' in /fastdfs/FastDFS/php_client/fastdfs_test.php on line 4
PHP Fatal error:  Call to undefined function fastdfs_tracker_make_all_connections() in /fastdfs/FastDFS/php_client/fastdfs_test.php on line 6

附录2:
[root@node1 php_client]# more fastdfs_client.ini
extension = fastdfs_client.so

fastdfs_client.tracker_group_count = 1
fastdfs_client.tracker_group0 = /fastdfs/FastDFS/conf/client.conf
#fastdfs_client.tracker_group1 = /home/yuqing/fastdfs/conf/client.conf

附录3:
[root@node1 php_client]# more /fastdfs/FastDFS/conf/client.conf
network_timeout=60
base_path=/fastdfs

tracker_server=172.18.27.133:22122

#standard log level as syslog, case insensitive, value list:
### emerg for emergency
### alert
### crit for critical
### error
### warn for warning
### notice
### info
### debug
log_level=info


#HTTP settings
http.tracker_server_port=8080

#use "#include" directive to include HTTP other settiongs
#include http.conf

附录4:
[root@gfs-node1 php_client]# more /fastdfs/FastDFS/conf/http.conf
# HTTP default content type
http.default_content_type = application/octet-stream

# MIME types mapping filename
# MIME types file format: MIME_type  extensions
# such as:  image/jpeg  jpeg jpg jpe
# you can use apache's MIME file: mime.types
http.mime_types_filename=mime.types

# if use token to anti-steal
# default value is false (0)
http.anti_steal.check_token=false

# token TTL (time to live), seconds
# default value is 600
http.anti_steal.token_ttl=900

# secret key to generate anti-steal token
# this parameter must be set when http.anti_steal.check_token set to true
# the length of the secret key should not exceed 128 bytes
http.anti_steal.secret_key=FastDFS1234567890

# return the content of the file when check token fail
# default value is empty (no file sepecified)
http.anti_steal.token_check_fail=/fastdfs/FastDFS/conf/anti-steal.jpg


附录5:

[root@node1 php_client]# netstat -an|grep -w 8080
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN

论坛徽章:
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
发表于 2009-10-28 13:42 |显示全部楼层

回复 #1 lanfeng356 的帖子

看一下帖子:http://linux.chinaunix.net/bbs/thread-1141400-1-1.html
有问题请留言。

论坛徽章:
0
发表于 2009-10-30 13:44 |显示全部楼层
我想用FastDFS,部署一个webserver,比如tomcat,有成功的案例吗?应该怎样部署呢?

有知道的达人请帮忙~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP