当前位置:网站首页>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
边栏推荐
- Arduino Stepper库驱动28BYJ-48步进电机测试程序
- Wechat applet realizes keyword highlighting
- Hls4ml/vivado HLS error reporting solution
- 振弦采集模块测量振弦传感器的流程步骤
- Win11快捷键切换输入法无反应怎么办?快捷键切换输入法没有反应
- list大集合等比分割成多个小list集合
- 优质笔记软件综合评测和详细盘点(一) Notion、Obsidian、RemNote、FlowUs
- C#联合halcon应用——大华相机采集类
- 上大学后明白了哪些坑人的事?
- 毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
猜你喜欢
![[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached](/img/c8/a205ddc2835c87efa38808cf31f59e.jpg)
[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached

windows环境 redis安装和启动(后台启动)

Procédure de mesure du capteur d'accord vibrant par le module d'acquisition d'accord vibrant

Arduino Stepper库驱动28BYJ-48步进电机测试程序

有意思了!数据库也搞Serverless!

JS 之 常用内置类的使用

Review the collection container again

GC垃圾回收

JS proxy

math_利用微分算近似值
随机推荐
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
使用 Kibana Timelion 进行时间序列分析
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
Unreal Engine packaging project
【无标题】
Win11怎么关闭开机自启动软件
对金额进行求和
Why must we move from Devops to bizdevops?
振弦采集模块测量振弦传感器的流程步骤
[research materials] Huawei Technology ICT 2021: at the beginning of the "Yuan" year, the industry is "new" -- download attached
科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
js三元表达式复杂条件判断
HLS4ML进入方法
C#聯合halcon應用——大華相機采集類
Wechat applet realizes keyword highlighting
【let var const】
Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
Linux下安装Redis,并配置环境
[untitled]
Example explanation: move graph explorer to jupyterlab