当前位置:网站首页>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
边栏推荐
- 上大学后明白了哪些坑人的事?
- 开发那些事儿:EasyCVR平台添加播放地址鉴权功能
- Difference between redo and undo
- MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
- Using win7 vulnerability to crack the system login password
- C # joint halcon Application - Dahua Camera Collection class
- 墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
- Optimization of video streaming with repeated requests in the case of unstable easygbs network
- Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
- Detailed configuration of network security "Splunk" in national vocational college skills competition
猜你喜欢
全国职业院校技能大赛网络安全“splunk“详细配置
Solve the problem of slow or failed vscode download
MYSLQ十种锁,一篇文章带你全解析
P2433 【深基1-2】小学数学 N 合一
Why must we move from Devops to bizdevops?
Review the collection container again
Use of common built-in classes of JS
【多线程】 实现单例模式 ( 饿汉、懒汉 ) 实现线程安全的单例模式 (双重效验锁)
自定义插入页面标签以及实现类似通讯录的首字母搜索
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
随机推荐
【let var const】
list分割成满足和不满足条件的集合(partitioningBy)
How to use console Log print text?
通过js实现金字塔(星号金字塔,回文对称数字金字塔)
qobject_ Cast usage
Sum the amount
JS的Proxy
Anaconda安装虚拟环境到指定路径
Optimization of video streaming with repeated requests in the case of unstable easygbs network
2022/5/23-2022/5/30
1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack
PowerDesigner设计Name和Comment 替换
HLS4ML进入方法
Oracle physical architecture
ORA-01950
What is the essential difference between Bi development and report development?
产品模块化设计的前世今生
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?
一个程序员如何快速成长
Battery simulation of gazebo robot