docker-fastdfs

docker部署fastdfs

下载代码

git clone https://github.com/LowEntropyBody/docker-fastdfs-with-nginx.git

切换目录

cd docker-fastdfs-with-nginx

修改配置文件

vi config/fdfs.conf

配置文件如下

# Configure the tracker address, it must be an external address (does not support DNS)
TRACKER_ADDRESS='192.168.50.11:22122'
# Tracker basic data storage location
TRACKER_PATH='/fastdfs/tracker'
# Storage basic data storage location
STORAGE_PATH='/fastdfs/storage'
# Storage download port
STORAGE_PORT='23000'
# storage data storage path (recommended for one hard disk, one path)
STORAGE_PATHS='/fastdfs/storage_path0 /fastdfs/storage_path1'
# Storage reserved space
RESERVED_STORAGE_SPACE='0.5%'

生成compose yaml文件

sudo ./script/build_compose.sh

启动

sudo docker-compose up -d

Open tracker port

sudo ufw allow 22122
sudo ufw allow 23000

查看启动日志

sudo docker logs fastdfs-0.1.0 -f

查询进程

sudo netstat -unltp|grep fdfs

在这里插入图片描述

你可能感兴趣的:(分布式,fastdfs)