1制作存储路径 mkdir -p fdfs/dev1 fdfs/dev2 fdfs/conf
增加内存硬盘:
删除节点
数据同步
1 mkdir -p /fdfs/tracker/data /fdfs/tracker/conf
2
firewall-cmd --zone=public --add-port=22122/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
启动tracker1:
docker run -d --name tracker1 --net=host --restart always \
-v /etc/localtime:/etc/localtime \
-v /fdfs/tracker/data:/data/fast_data/ \
-v /fdfs/tracker/conf/tracker.conf:/etc/fdfs/tracker.conf \
morunchang/fastdfs sh tracker.sh
启动tracker2:
docker run -d --name tracker2 --net=host --restart always \
-v /etc/localtime:/etc/localtime \
-v /fdfs/tracker/data:/data/fast_data/ \
-v /fdfs/tracker/conf/tracker.conf:/etc/fdfs/tracker.conf \
morunchang/fastdfs sh tracker.sh
docker run -d --name tracker3 --net=host --restart always \
-v /etc/localtime:/etc/localtime \
-v /fdfs/tracker/data:/data/fast_data/ \
-v /fdfs/tracker/conf/tracker.conf:/etc/fdfs/tracker.conf \
morunchang/fastdfs sh tracker.sh