下载fastdfs-nginx-module
首先从Git上下载fastdfs-nginx-module源码
sudo git clone https://github.com/happyfish100/fastdfs-nginx-module
修改fastdfs-nginx-module-master/src/config
文件的对应属性内容如下
ngx_module_incs="/usr/local/include /usr/include/fastdfs /usr/include/fastcommon"
CORE_INCS="$CORE_INCS /usr/local/include /usr/include/fastdfs /usr/include/fastcommon"
配置Nginx
下载Nginx压缩包,解压到任意目录
首先安装相关依赖(这里以Ubuntu为例,其它系统大同小异)
sudo apt-get install openssl libssl-dev
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install zlib1g-dev
sudo apt-get install build-ess