1、安装fastDFS的tracker, 下载地址:http://sourceforge.net/projects/fastdfs/files/
1.1、安装到/home/xxx/local/FastDFS (tracker和stroge服务器相同安装方式)
1.1.1、修改make.sh中的安装路径, ./make.sh, ./make.sh install
1.2、安装到默认路径下(主要保证.h和lib安装到系统路径下,nginx扩展模块会用到这些头文件)
1.3、服务器部署
www.xs-cloud-mysql00.xs01.xxx.com(nginx+cache+tracker+client)
www.xs-cloud-hdps00.xs01.xxx.com (nginx+storage)
www.bj-cloud-hdps00.bj01.xxx.com (nginx+storage)
www.bj-cloud-hdps01.bj01.xxx.com (nginx+storage)
2、安装tracker服务器的openresty + ngx_cache_purge-2.1 (nginx和cache,其中cache目录为tmpfs)

2.1、下载ngx_cache_purge http://labs.frickle.com/nginx_ngx_cache_purge/

2.2、nginx配置(ngxin.conf)

2.3、tracker配置(tracker.conf)

2.4、client配置(client.conf)

3、安装storage服务器的openresty + fastdfs-nginx-module

3.2、下载fastdfs-nginx-module

http://sourceforge.net/projects/fastdfs/files/FastDFS%20Nginx%20Module%20Source%20Code/

3.3、安装

3.4、ln -s /home/xxx/local/FastDFS/data /home/xxx/local/FastDFS/data/M00
3.5、nginx配置(nginx.conf)

3.6、storage配置(storage.conf)

4、fastdfs,nginx配置注意点

参见文档
ln -s /home/uaq/local/FastDFS/data /home/uaq/local/FastDFS/data/M00
注意:mod_fastdfs.conf必须拷贝到/etc/fdfs/mod_fastdfs.conf,或者在Nginx扩展中修改源代码

5、fastDFS的php扩展安装

修改/etc/fdfs/client.conf