FastDFS+nginx+fastdfs-nginx-module服务器配置(on Centos7 and Ubuntu18.04)

因为网上没有怎么看到(或者我没看到吧),完整的,能用的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
  • 7
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 18
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 18
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值