1.安装 libfastcommon-1.0.43.tar.gz
#编译安装
tar -zxvf libfastcommon-1.0.43.tar.gz
./make.sh && ./make.sh install
2.安装 fastdfs-6.06.tar.gz
#编译安装
./make.sh &&
./make.sh install
#供nginx访问使用
cp /usr/local/soft/fastdfs/conf/http.conf /etc/fdfs/
cp /usr/local/soft/fastdfs/conf/mime.types /etc/fdfs/
3.安装 fastdfs-nginx-module-1.22.tar.gz
#解压
tar -zxvf fastdfs-nginx-module-1.22.tar.gz
#配置文件复制到fdfs下 供nginx配置
cp /usr/local/soft/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs
4.安装nginx
#解压
tar -zxvf nginx-1.15.4.tar.gz /usr/local/nginx
#添加fastdfs-nginx-module模块
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx --add-module=/usr/local/fastdfs-nginx-module/src --with-http_ssl_mo