1、安装依赖libfastcommon
github地址:https://github.com/happyfish100/libfastcommon.git
1)download libfastcommon.zip
2)unzip libfastcommon.zip
3) cd libfastcommon
4) ./make.sh
5) ./make.sh install
2、安装fastdfs
github地址:
1) downloadfastdfs.zip
2) cd fastdfs
3) ./make.sh
4) ./make.sh install
5) 启动tracker /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
6) 启动storage /usr/bin/fdfs_storaged /etc/fdfs/storage.confrestart
注:配置文件在/ect/fdfs/路径下,可自行修改各种配置
3、安装nginx
1) 下载fastdfs-ngxin-module.zip
2)upzip fastdfs-ngxin-module.zip
3)官网下载nginx.zip
4)unzip nginx.zip
5)安装nginx依赖库 apt-get install libpcre3 libpcre3-dev zlib1g zlib1g.dev openssl libssl-dev
6)cd nginx
7)./configure --add-module=/var/lib/fdfs_source/fastdfs-ngxin-module/src
ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so
10)/usr/local/nginx/sbin/nginx 就可以启动成功了