网上有很多帖子介绍fastdfs的使用。但是我看到的帖子中还没有一个能按照说明的步骤完全没有错误。
一般就是版本问题等等。
先说一下我的版本:
fastdfs:FastDFS_v5.08.tar.gz
nginx:1.8.1
pcre:pcre-8.31(这个其实可以不装)
ngx_cache_purge-2.3
linux:centos6.5
libfastcommon-master:https://github.com/happyfish100/libfastcommon
最关键的是这个:fastdfs-nginx-module的版本,下载了很多都不合适,倒是nginx编译失败。安装过程中遇到的最大问题,也是这个.版本不对编译时会报:In function `fdfs_mod_init' 错误:。
最终下载地址:https://github.com/happyfish100/fastdfs-nginx-module/
这个版本的才是能编译通过的
看了这个帖子(http://blog.youkuaiyun.com/javaee1234/article/details/74315990)解决的