Linux下安装FastDFS分布式文件系统
来源:互联网 发布:哈尔滨seo大牛 编辑:程序博客网 时间:2024/05/21 22:38
1.FastDFS是什么?
FastDFS是一个开源的高性能分布式文件系统。它的主要功能包括:文件存储、文件同步、文件访问(文件上传和文件下载)。
2.FastDFS能干嘛?
解决大容量负载均衡问题,适用于文件服务的站点,例如,照片共享网站、视频分享网站等。
3.FastDFS去那下?
在下载FastDFS之前,首先分别下载并安装libevent、libfastcommon(https://github.com/happyfish100/libfastcommon),最后再下载并安装FastDFS(https://github.com/happyfish100/fastdfs或https://sourceforge.net/projects/fastdfs/)
(1)安装libevent
tar zxvf libevent-2.1.8-stable.tar.gzcd libevent-2.1.8-stable./configure -prefix=/optmakemake install
(2)安装libfastcommon(下载:https://github.com/happyfish100/libfastcommon)
unzip libfastcommon-master.zipcd libfastcommon-master./make.sh./make.sh install
(3)安装FastDFS
tar xzf FastDFS_v5.08.tar.gzcd FastDFS./make.sh
当出现以下错误信息时:原因是我们没有安装libfastcommon,FastDFS需要libfastcommon此函数库来支持。
此时执行如下命令进行安装:
./make.sh install
当我们使用如下命令,启动跟踪服务器
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
当出现如上信息时,原因tracker.conf不存在。我们需要执行如下命令,来创建tracker.conf配置文件:
cp -f /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf
当我们再次用如下命令,启动跟踪服务器,发现还是启动出错。
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
那么我们就需要执行如下命令创建它所需要的目录:
mkdir -p /home/yuqing/fastdfs/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
启动存储服务器
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
当出现如上错误信息时,输入如下命令即可。
cp -f /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf
再次启动存储服务器
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
把跟踪服务器和存储服务器当作服务启动,输入如下命令:
/sbin/service fdfs_trackerd start/sbin/service fdfs_storaged start
阅读全文
1 0
- Linux下安装FastDFS分布式文件系统
- linux centos7 分布式文件系统fastdfs安装配置
- Ubuntu Linux下FastDFS分布式文件系统的安装、配置与初步使用
- 分布式文件系统 fastDFS 安装步骤
- 分布式文件系统fastdfs安装步骤
- FastDfs分布式文件系统+Ngnix安装
- FastDFS分布式文件系统集群安装
- 分布式文件系统 - FastDFS 安装部署
- Linux+FastDFS分布式文件系统部署
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置
- 分布式文件系统 FastDFS 5.0.8 & Linux CentOS 6.7 安装配置
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置
- linux上安装分布式文件系统FastDFS(单节点)
- FastDFS分布式文件系统在Linux上的部署和安装
- FastDFS+Nginx轻量级分布式文件系统安装使用
- FastDFS+Nginx轻量级分布式文件系统安装使用
- 三、分布式文件系统fastDFS-安装部署
- Android 屏幕适配攻略(六)设置通知样图标与启动图标适配
- 基于hadoop搜索引擎实践——生成倒排表文件(四)
- bzoj4973比特战争 kruskal
- C语言中头文件与库文件
- linux常用命令(cd,ls,mkdir,pwd,rmdir,cp,mv,ln)
- Linux下安装FastDFS分布式文件系统
- NVIC中断
- css3 skew坐标轴
- sql中的surbstr_index的应用
- [题解] 关键子工程(DP+拓扑)
- Python 3.6.0 实现 websocket server
- 51nod 1008 N的阶乘 mod P
- 8.24实战感悟
- # Keras:2.1 回归神经网络