FastDFS分布式文件系统PHP扩展安装
制作:高进波
时间:2009-10-28
以下操作在UBUNTU系统下通过,适合任何LINUX发行版
1.下载FastDFS
wget http://fastdfs.googlecode.com/files/FastDFS_v1.22.tar.gz
2.解压
tar xvzf FastDFS_v1.22.tar.gz
cd FastDFS
3.修改编译文件
vi make.sh
去掉文件最后的复制配置到相关路径的if语句,因为是ubuntu系统,那部分是针对RHEL的
4.编译安装fastDFS
./make.sh && ./make.sh install
5.安装PHP扩展
cd php_client
apt-get install php5-dev
phpize
./configure
make && make install
6.配置php扩展
cp fastdfs_client.ini /etc/php5/cgi/conf.d/
cp ../conf/client.conf /usr/local/config/
vi /etc/php5/cgi/conf.d/fastdfs_client.ini
extension = fastdfs_client.so
fastdfs_client.tracker_group_count = 2
fastdfs_client.tracker_group0 = /usr/local/config/client.conf
fastdfs_client.tracker_group1 = /usr/local/config/client.conf
vi /usr/local/config/client.conf
network_timeout=60
base_path=/opt/fastdfs-client
tracker_server=119.147.106.147: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
建立目录
mkdir /opt/fastdfs-client
7.测试
php fastdfs_test.php
完成!
五月 3rd, 2011 at 05:32
Favourite Sites…
[...]I like to honor other websites on the web, even if they are not related to my site, by linking to them. Below are some websites I think are worth checking out http://www.panicattackstreatmentcure.net/links/…...
五月 9th, 2011 at 21:39
Recommended Sites…
[...]below you’ll find my recommended links page http://www.yeastinfectiontreatmentcure.net/links/ with some fantastic sites that I think you should definitely go visit[...]…
十一月 27th, 2011 at 06:27
Awesome website……
[...]the time to read or visit the content or sites we have linked to below the[...]………