伦伦影院久久影视,天天操天天干天天射,ririsao久久精品一区 ,一本大道香蕉大久在红桃,999久久久免费精品国产色夜,色悠悠久久综合88,亚洲国产精品久久无套麻豆,亚洲香蕉毛片久久网站,一本一道久久综合狠狠老

電子發燒友App

硬聲App

掃碼添加小助手

加入工程師交流群

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示
電子發燒友網>電子資料下載>電子資料>FastCFS基于塊存儲的通用分布式文件系統

FastCFS基于塊存儲的通用分布式文件系統

2022-06-17 | zip | 0.66 MB | 次下載 | 2積分

資料介紹

授權協議 AGPL-3.0
開發語言 C/C++
操作系統 跨平臺
軟件類型 開源軟件
所屬分類 大數據數據存儲

軟件簡介

FastCFS 是一款基于塊存儲的通用分布式文件系統,可以作為MySQL、PostgresSQL、Oracle等數據庫和云平臺的后端存儲。

支持的操作系統

  • Linux: Kernel version >= 3.10 (完全支持)
  • MacOS or FreeBSD (僅支持服務端,不支持FUSE)

依賴

安裝

libfuse可以采用腳本libfuse_setup.sh一鍵編譯和安裝。

libfastcommon、libserverframe、fastDIR、faststore和FastCFS 五個安裝包可采用 fastcfs.sh 腳本統一安裝配置,也可以按照5.1 - 5.6部分獨立安裝配置。

統一安裝方式

git clone https://github.com/happyfish100/FastCFS.git; cd FastCFS/

通過執行fastcfs.sh腳本,可自動從github倉庫拉取或更新五個倉庫代碼,按照依賴順序進行編譯、安裝,并能根據配置文件模版自動生成集群相關配置文件。

fastcfs.sh 命令參數說明:

  • pull -- 從github拉取或更新代碼庫(拉取到本地build目錄)
  • makeinstall -- 順序編譯、安裝代碼庫(make && make install)
  • init -- 初始化集群目錄、配置文件(已存在不會重新生成)
  • clean -- 清除已編譯程序文件(相當于make clean)

一鍵搭建(包括部署和運行)demo環境(需要root身份執行):

./helloWorld.sh --prefix=/usr/local/fastcfs-test

或執行如下命令(需要root身份執行):

./libfuse_setup.sh
./fastcfs.sh pull
./fastcfs.sh makeinstall
IP=$(ifconfig -a | grep -w inet | grep -v 127.0.0.1 | awk '{print $2}' | tr -d 'addr:' | head -n 1)
./fastcfs.sh init \
	--dir-path=/usr/local/fastcfs-test/fastdir \
	--dir-server-count=1 \
	--dir-host=$IP  \
	--dir-cluster-port=11011 \
	--dir-service-port=21011 \
	--dir-bind-addr=  \
	--store-path=/usr/local/fastcfs-test/faststore \
	--store-server-count=1 \
	--store-host=$IP  \
	--store-cluster-port=31011 \
	--store-service-port=41011 \
	--store-replica-port=51011 \
	--store-bind-addr= \
	--fuse-path=/usr/local/fastcfs-test/fuse \
	--fuse-mount-point=/usr/local/fastcfs-test/fuse/fuse1

注:--fuse-mount-point為mount到本地的路徑,通過這個mount point對FastCFS進行文件存取訪問。

FCFS_SHELL_PATH=$(pwd)/build/shell
$FCFS_SHELL_PATH/fastdir-cluster.sh restart
$FCFS_SHELL_PATH/faststore-cluster.sh restart
$FCFS_SHELL_PATH/fuse.sh restart

上述操作完成后,通過命令 df -h 可以看到FastCFS掛載的文件目錄。

libfastcommon

git clone https://github.com/happyfish100/libfastcommon.git; cd libfastcommon/
git checkout master
./make.sh clean && ./make.sh && ./make.sh install

默認安裝目錄:

/usr/lib64
/usr/lib
/usr/include/fastcommon

libserverframe

git clone https://github.com/happyfish100/libserverframe.git; cd libserverframe/
./make.sh clean && ./make.sh && ./make.sh install

fastDIR

git clone https://github.com/happyfish100/fastDIR.git; cd fastDIR/
./make.sh clean && ./make.sh && ./make.sh install

faststore

git clone https://github.com/happyfish100/faststore.git; cd faststore/
./make.sh clean && ./make.sh && ./make.sh install
mkdir /etc/fstore/
cp conf/server.conf conf/client.conf conf/servers.conf conf/cluster.conf conf/storage.conf /etc/fstore/

libfuse

構建libfuse需要先安裝meson和ninja。安裝meson和ninja需要python3.5及以上版本。

python安裝

包名:python3 python3-pip

Ubuntu下安裝命令:

apt install python3 python3-pip -y

CentOS下安裝命令:

yum install python3 python3-pip -y

meson 和 ninja 安裝

pip3 install meson
pip3 install ninja

gcc安裝

Ubuntu下安裝命令:

apt install gcc g++ -y

CentOS下安裝命令:

yum install gcc gcc-c++ -y

libfuse安裝

git clone https://github.com/libfuse/libfuse.git
cd libfuse/
git checkout fuse-3.10.1
mkdir build/; cd build/
meson ..
meson configure -D prefix=/usr
meson configure -D examples=false
ninja && ninja install
sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf

FastCFS

git clone https://github.com/happyfish100/FastCFS.git; cd FastCFS/
./make.sh clean && ./make.sh && ./make.sh install
mkdir /etc/fcfs/
cp conf/fuse.conf /etc/fcfs/

配置

為了更好地控制FastCFS的性能,我們通過各種設置參數為FastCFS提供了高度可配置和可調節的行為。

FastCFS的配置由多個子文件組成,其中一個是入口文件,其他文件用于引用。目錄/etc/fstore 是FastCFS配置文件的默認存放位置,但是在單個服務器上安裝多個FastCFS實例時,必須為每個實例指定不同的位置。

FastCFS有以下幾個配置文件:

  • server.conf - 服務器全局參數配置
  • cluster.conf - 集群參數配置
  • servers.conf - 服務器組參數配置
  • storage.conf - 存儲參數配置
  • client.conf - 客戶端使用的配置文件,需引用cluster.conf
?

存儲 文件系統 MySQL
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1變頻器維修資料大全
  2. 1.28 MB   |  1次下載  |  4 積分
  3. 2怎么為半導體測試儀選擇精密放大器
  4. 0.65 MB   |  次下載  |  免費
  5. 3IP5416 集成 500mA 充電 200mA 放電的 TWS 充電盒 SOC中文資料
  6. 5.62 MB   |  次下載  |  免費
  7. 4HD-1二合一恒電位儀的工作原理
  8. 0.01 MB   |  次下載  |  1 積分
  9. 5rk3562ddr4設計資料圖
  10. 0.74 MB   |  次下載  |  2 積分
  11. 6SQ33239 CPC8 ZVS 反激同步整流技術手冊
  12. 1.62 MB   |  次下載  |  免費
  13. 7SQ38343節能離線交流/直流轉換器集成 800V MOSFET技術手冊
  14. 1.37 MB   |  次下載  |  免費
  15. 8LT3580 升壓/反相DC/DC 帶2A開關的轉換器技術手冊
  16. 0.46 MB   |  次下載  |  免費

本月

  1. 1EMC PCB設計總結
  2. 0.33 MB   |  10次下載  |  免費
  3. 2耗盡型MOS FET產品目錄選型表
  4. 0.14 MB   |  4次下載  |  免費
  5. 3PD取電芯片 ECP5702規格書
  6. 0.88 MB   |  4次下載  |  免費
  7. 4氮化鎵GaN FET/GaN HEMT 功率驅動電路選型表
  8. 0.10 MB   |  2次下載  |  免費
  9. 5TI系列-米爾TI AM62L核心板開發板-高能效低功耗嵌入式平臺
  10. 1.51 MB  |  1次下載  |  免費
  11. 6PC5012氮化鎵 PIIP 單片集成電路數據手冊
  12. 1.66 MB   |  1次下載  |  免費
  13. 7PD取電芯片,可取5/9/12/15/20V電壓ECP5702數據手冊
  14. 0.88 MB   |  1次下載  |  免費
  15. 8飛騰S5000C-64雙路服務器系列應用宣傳冊--一乘科技
  16. 945.81 KB  |  1次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935137次下載  |  10 積分
  3. 2開源硬件-PMP21529.1-4 開關降壓/升壓雙向直流/直流轉換器 PCB layout 設計
  4. 1.48MB  |  420064次下載  |  10 積分
  5. 3Altium DXP2002下載入口
  6. 未知  |  233095次下載  |  10 積分
  7. 4電路仿真軟件multisim 10.0免費下載
  8. 340992  |  191464次下載  |  10 積分
  9. 5十天學會AVR單片機與C語言視頻教程 下載
  10. 158M  |  183360次下載  |  10 積分
  11. 6labview8.5下載
  12. 未知  |  81606次下載  |  10 積分
  13. 7Keil工具MDK-Arm免費下載
  14. 0.02 MB  |  73832次下載  |  10 積分
  15. 8LabVIEW 8.6下載
  16. 未知  |  65991次下載  |  10 積分