因为网上没有怎么看到(或者我没看到吧),完整的,能用的FastDFS服务器配置;所以为了让其他人不像我一样那么辛苦的找资料,
我就记录自己从FastDFS安装配置+Nginx安装配置+fastdfs-nginx-module安装配置的安装过程,好让大家能够比较顺利的安装配置。
系统环境是 Ubuntu18.04 请移步这里: 安装FastDFS(on Ubuntu18.04)(FastDFS+nginx+fastdfs-nginx-module(1))
安装FastDFS
安装libfastcommon
安装FastDFS之前要先安装它的依赖库libfastcommon,
下载地址:
https://github.com/happyfish100/libfastcommon.git
我安装的FastDFS版本5.08
具体安装步骤查看它里面的INSTALL文档
解压libfastcommon-master压缩包
unzip libfastcommon-master.zip
或者
tar -zxvf libfastcommon-master.tar.gz
进入libfastcommon目录
cd libfastcommon
编译libfastcommon
./make.sh
安装libfastcommon
./make.sh install
安装FastDFS
下载地址:
https://github.com/happyfish100/fastdfs.git
具体安装步骤查看它里面的INSTALL文档
解压FastDFS压缩包
tar -xzf FastDFS_v5.08.tar.gz
或者
unzip fastdfs-master.zip
进入FastDFS目录
cd FastDFS
编译FastDFS
./make.sh
安装FastDFS
./make.sh install
修改配置文件
cd /etc/fdfs/
会看到三个配置文件:
client.conf.sample, tracker.conf.sample,storage.conf.sample
复制,然后配置:
cp client.conf.sample client.conf
cp tracker.conf.sample tracker.conf
cp storage.conf.sample storage.conf
配置storage.conf
注意:同一个组内的不同的storage的配置要相同(方便同步文件)
配置storage属于哪个group:
group_name=gr