Docker安装fastdfs(14)
2018-05-26 本文已影响40人
ROCK_杰哥
题外话,好多fs系统为什么还要采用fastdfs呢?这个东西在做上传下载的时候很有优势,速度很快,没有分片,所有不适合大数据的上传下载。
开始
搭建一个单机的fastdfs
docker pull morunchang/fastdfs
###运行tracker
docker run -d --name tracker --net=host morunchang/fastdfs sh tracker.sh
###运行storage
docker run -d --name storage --net=host -e TRACKER_IP=10.168.31.168:22122 -e GROUP_NAME=storagegroup morunchang/fastdfs sh storage.sh
###开放端口
firewall-cmd --zone=public --add-port=22122/tcp --permanent
firewall-cmd --reload
###测试一下
需要两个项目git地址:https://github.com/happyfish100/fastdfs-client-java
https://github.com/ityouknow/spring-boot-examples.git中的spring-boot-fastDFS这个项目
加载到idea中,
修改

运行fastDFS
浏览器localhost:8080

结果:
