Ubuntu安装配置FastDFS# HTTP settings http.disabled=false # HTTP port on this tracker server http.server...

环境: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

待续。。。。

转载于:https://www.cnblogs.com/elamon/archive/2011/05/13/2045464.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值