FastDFS和Nginx实现分布式文件服务器

FastDFS和Nginx实现分布式文件服务器

FastDFS是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了大容量存储和负载均衡的问题。特别适合以文件为载体的在线服务,如相册网站、视频网站等等。

FastDFS为互联网量身定制,充分考虑了冗余备份、负载均衡、线性扩容等机制,并注重高可用、高性能等指标,使用FastDFS很容易搭建一套高性能的文件服务器集群提供文件上传、下载等服务。

1.下载

FastDFS下载地址:https://sourceforge.net/projects/fastdfs/

FastDFS的github下载地址:https://github.com/happyfish100/fastdfs

libfastcommon的下载地址:https://sourceforge.net/projects/libfastcommon/

libfastcommon的github下载地址:https://github.com/happyfish100/libfastcommon

FastDFS-nginx-module的下载地址:https://sourceforge.net/projects/fastdfs/files/FastDFS%20Nginx%20Module%20Source%20Code/

FastDFS-nginx-module的github下载地址:https://github.com/happyfish100/fastdfs-nginx-module

fastdfs-client-java的下载地址:https://sourceforge.net/projects/fastdfsclient/

fastdfs-client-java的github下载地址:https://github.com/happyfish100/fastdfs-client-java

Nginx下载地址:http://nginx.org/en/download.html

Nginx的github下载地址:https://github.com/nginx/nginx

2.架构图

......

3.FastDFS-tracker安装

3.1 FastDFS安装环境

FastDFS是C语言开发,建议在linux上运行。

安装FastDFS需要先将官网下载的源码进行编译,编译依赖gcc环境

yum install gcc-c++

3.2 安装libevent

FastDFS依赖libevent库

yum -y install libevent

1

3.3 安装libfastcommon

libfastcommon是FastDFS官方提供的,libfastcommon包含了FastDFS运行所需要的一些基础库。

上传到linux,并解压

原文链接

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值