- 论坛徽章:
- 0
|
本人刚接触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 |
|