Copy right 2010 Happy Fish / YuQing

This software may be copied only under the terms of the GNU General
Public License V3, Please visit the FastDFS Home Page for more detail.
English language: http://english.csource.org/
Chinese language: http://www.csource.org/

#step 1. first install the FastDFS storage server and client library,
         the FastDFS version should >= 2.09. download address:
         https://code.google.com/p/fastdfs/downloads/list

#step 2. install nginx server
         FastDFS nginx module test passed with nginx 0.8.53,
         my nginx installed in /usr/local/nginx

#step 3. download FastDFS nginx module source package and unpack it, such as:
tar xzf fastdfs_nginx_module_v1.16.tar.gz

#step 4. enter the nginx source dir, compile and install the module, such as:
cd nginx-1.5.12
./configure --add-module=/home/yuqing/fastdfs-nginx-module/src
make; make install

Notice: before compile, you can change FDFS_OUTPUT_CHUNK_SIZE and 
        FDFS_MOD_CONF_FILENAME macro in the config file as:
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'" 

#step 5. config the nginx config file such as nginx.conf, add the following lines:

        location /M00 {
            root /home/yuqing/fastdfs/data;
            ngx_fastdfs_module;
        }

#step 6. make a symbol link ${fastdfs_base_path}/data/M00 to ${fastdfs_base_path}/data,
         command line such as:
ln -s /home/yuqing/fastdfs/data  /home/yuqing/fastdfs/data/M00

#step 7. change the config file /etc/fdfs/mod_fastdfs.conf, more detail please see it

#step 8. restart the nginx server, such as:
/usr/local/nginx/sbin/nginx -s stop; /usr/local/nginx/sbin/nginx

