FastDFS Nginx實現檔案伺服器 1

2021-09-29 19:24:36 字數 875 閱讀 3637

如果沒有gcc環境,需要安裝gcc:

yum install gcc-c++ -y
2.3.安裝libevent

fastdfs依賴libevent庫,

如果沒有,需要安裝:

yum -y install libevent
安裝libfastcommon:

libfastcommonv1.0.7.tar.gz上傳到linux中

將libfastcommonv1.0.7.tar.gz移動至/usr/local/下

[root@localhost ~]

# mv libfastcommonv1.0.7.tar.gz /usr/local/

進入/usr/local/,解壓libfastcommon

[root@localhost local]

# cd /usr/local/

[root@localhost local]

# tar -zxvf libfastcommonv1.0.7.tar.gz

進入解壓資料夾,編譯,安裝

[root@localhost local]

# cd libfastcommon-1.0.7/

編譯:

[root@localhost libfastcommon-1.0.7]

# ./make.sh

安裝:

[root@localhost libfastcommon-1.0.7]

# ./make.sh install

FastDFS Nginx單機配置

2 tracker返回一台可用的storage 術語 fastdfs兩個主要的角色 tracker server 和 storage server tracker server 跟蹤伺服器,主要負責排程storage節點與client通訊,在訪問上起負載均衡的作用,和記錄storage節點的執行狀態...

Fastdfs nginx動態縮略

tracker storage 192.168.110.102 group1 storage 192.168.110.196 group2 group1 group2 拖包 1 cd usr local src 2 systemctl stop firewalld setenforce 0 配置防火...

FastDFS Nginx實現檔案伺服器

a b 啟動tracker etc init.d fdfs trackerd start 啟動storage etc init.d fdfs storaged start cd home fastdfs ll nginx configure prefix usr local nginx add mo...