FastDFS Nginx實現檔案伺服器

2021-08-18 19:19:47 字數 963 閱讀 3145

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-module=/data/program/software/fastdfs-nginx-module/src/

上面需要指定好fastdfs-nginx-module模組的位置

make

make install

./configure && make && make install

建立軟連線,將其鏈結到實際存放資料的目錄:

ln -s /home/fastdfs/fdfs_storage/data/ /home/fastdfs/fdfs_storage/data/m00 

開機自啟動檔案:

/etc/rc.d/rc.local

啟動nginx:

/usr/local/nginx/sbin/nginx

命令集:

1.檢視nginx在**用whereis nginx

2.檢視狀態ps -aux | grep nginx

3.nginx配置檔案:

location ~/group[0-9]/m00

測試:/usr/bin/fdfs_upload_file /etc/fdfs/client.conf /data/program/software/timg.jpg

訪問:192.168.233.128:8888/group1/m00/00/00/wkjpgfyz1wuawbntaaa79ygmiuq602.jpg

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實現檔案伺服器 1

如果沒有gcc環境,需要安裝gcc yum install gcc c y2.3.安裝libevent fastdfs依賴libevent庫,如果沒有,需要安裝 yum y install libevent安裝libfastcommon libfastcommonv1.0.7.tar.gz上傳到li...