环境:Ubuntu10.10+Apache2+php5+mysql

要求:单机带tracker+storage+client

安装过程:

一 下载安装fastdfs
1#要想支持web,得需要配置libevent
#安装libevent
cd libevent
./configure --prefix=/usr
make;make install
#安装fastdfs
tar FastDFS
cd FastDFS
#编译make.sh 以主持web和开机自动脚本
vim make.sh #去掉这两行的注视
...
WITH_HTTPD=1 #支持web,client可以不开启这个功能
WITH_LINUX_SERVICE=1 #支持开机脚本
...
# 编译
./make.sh && ./make.sh install
二 配置fastdfs:

1配置/etc/fdfs/tracker.conf

配置如下:

# the base path to store data and log files

base_path=/home/xzh2002/fastdfs

# HTTP settings

http.disabled=false
# HTTP port on this tracker server

http.server_port=8888
# check storage HTTP server alive interval seconds# <= 0 for never check# default value is 30

http.check_alive_interval=30
# check storage HTTP server alive type, values are:#   tcp : connect to the storge server with HTTP port only, #        do not request and get response#   http: storage check alive url must return http status 200# default value is tcp

http.check_alive_type=tcp
# check storage HTTP server alive uri/url# NOTE: storage embed HTTP server support uri: /status.html

http.check_alive_uri=/status.html
# if need find content type from file extension name

http.need_find_content_type=true
#use "#include" directive to include http other settings

#include http.conf

待续。。。。

posted on 2011-05-13 13:55  纵横南北thu  阅读(652)  评论(1编辑  收藏  举报