当前位置:网站首页>Getting started with fastdfs
Getting started with fastdfs
2022-07-01 19:56:00 【A fool carrying bricks】
List of articles
distributed file system
All of the file system , Distributed storage on multiple hosts , Form a complete file system .
Basic structure of distributed file system
Manager Can store data It's also possible not to store data
fastDFS summary
c An open source distributed file system written in
fastDFS characteristic
1. Application level file system
2. You can't mount , Namely You can't mount operation
fastDFS The three roles and the relationship between them
role :
1. Tracker - tracker
2. Storage nodes - storage
3. client - client
Relationship :
1. client and storage Active connection Tracker
2. storage Active direction tracker The report State information
Disk remaining 、 File synchronization status 、 File upload and download times
3.Storage It will start A single thread Yes Tracker Connection and regular report
3. A group contains storage It is not set through the configuration file , adopt tracker Acquired
fastDFS Capacity expansion
1. Lateral capacity
Add capacity
increase group Group
2. The longitudinal expansion
The data backup
The maximum capacity currently rented ( The storage node with the smallest capacity )
All storage node group names must be the same
fastDFS install
- install
# Basic library package
# libfastcommon-1.36.zip
./make.sh
sudo ./make.sh install
# fastDFS
# fastdfs-5.10.tar.gz
./make.sh
sudo ./make.sh install
- Test for successful installation
fdfs_test
fastDF To configure
# 1. Default profile location
# /etc/fdfs
#2. Tracker( Tracker )
# Modify the configuration file
bind_addr=192.168.82.253 # Current host ip
port=22122 # Bound port
base_path=/home/root/fastDFS/tracker # log Catalog
# start-up Tracker service
fdfs_trackerd /etc/fdfs/tracker.conf
sudo fdfs_trackerd /etc/fdfs/tracker.conf restart
sudo fdfs_trackerd /etc/fdfs/tracker.conf stop
#3.stroage( Storage nodes )
# Modify the configuration file
group_name=group1 # The group to which the storage node belongs
bind_addr=192.168.82.253 # Storage node bound ip
port=23000 # Bound port
base_path=/home/root/fastDFS/storage # Number of storage directories
store_path0=/home/root/fastDFS/storage # Configure specific storage directories
tracker_server=192.168.82.252:22122 # Connect tracker Used when ip And port
# start-up storage service
fdfs_storaged /etc/fdfs/storage.conf
sudo fdfs_storaged /ect/fdfs/storage.conf restart
sudo fdfs_storaged /etc/fdfs/storage.conf stop
#4. Client
base_path=/home/root/fastDFS/client # log Log directory
tracker_server=192.168.82.253:22122 # Connect tracker It's time to ip And port letter
# Detect current fdfs Whether the environment is accessible
fdfs_monitor /etc/fdfs/client.conf # appear active Is normal
边栏推荐
- 【无标题】
- Set object value changes null value object
-
- Hls4ml reports an error the board_ part definition was not found for tul. com. tw:pynq-z2:part0:1.0.
- Object creation
- C#联合halcon应用——大华相机采集类
- Remove line breaks from MySQL query results
- 自定义插入页面标签以及实现类似通讯录的首字母搜索
- 1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包
- [research materials] national second-hand housing market monthly report January 2022 - Download attached
猜你喜欢
GC垃圾回收
今日群里分享的面试题
P2433 【深基1-2】小学数学 N 合一
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
[research materials] national second-hand housing market monthly report January 2022 - Download attached
开发那些事儿:EasyCVR平台添加播放地址鉴权功能
Example explanation: move graph explorer to jupyterlab
Optimization of video streaming with repeated requests in the case of unstable easygbs network
Interview question 1
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
随机推荐
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
torch. nn. functional. Interpolate function
Bind this of the current scope for callback functions in other cases such as timers and delayers
2022/5/23-2022/5/30
一个悄然崛起的国产软件,低调又强大!
2022/5/23-2022/5/30
After studying 11 kinds of real-time chat software, I found that they all have these functions
Define dichotomy lookup
P2433 [deep foundation 1-2] primary school mathematics n in one
Anaconda安装虚拟环境到指定路径
Wechat applet realizes keyword highlighting
Understand the structure in C language in one article
MySQL signale une erreur can 't create table' demo01. TB Étudiant '(errno: 150)
CMU AI PhD first year summary
今日群里分享的面试题
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
ModSim基本使用(Modbus模拟器)
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?
【多线程】 实现单例模式 ( 饿汉、懒汉 ) 实现线程安全的单例模式 (双重效验锁)
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?