docker搭建FastDFS文件系统docker安FastDFS
2021/9/26 23:10:56
本文主要是介绍docker搭建FastDFS文件系统docker安FastDFS,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1.查找镜像安装start最多的。
[root@hecs-356640 soft]# docker search fastdfs NAME DESCRIPTION STARS OFFICIAL AUTOMATED season/fastdfs FastDFS 77 ygqygq2/fastdfs-nginx 整合了nginx的fastdfs 28 [OK] luhuiguo/fastdfs FastDFS is an open source high performance d… 25 [OK] morunchang/fastdfs A FastDFS image 20 delron/fastdfs 14 qbanxiaoli/fastdfs FastDFS+FastDHT(单机+集群版) 12 [OK] moocu/fastdfs fastdfs5.11 9 ecarpo/fastdfs-storage 4 lionheart/fastdfs-tracker just have a try on autobuilded -_-# 3 [OK] imlzw/fastdfs-tracker fastdfs的tracker服务 3 [OK] manuku/fastdfs-fastdht fastdfs fastdht 2 [OK] imlzw/fastdfs-storage-dht fastdfs的storage服务,并且集成了fastdht的服务… 2 [OK] leaon/fastdfs fastdfs 1 dodotry/fastdfs 更新到最新版本,基于Centos8/nginx1.19.8/Fast… 1 evan1120/fastdfs_tracker The fastdfs tracker docker image, only conta… 1 [OK] evan1120/fastdfs_storage The fastdfs storage image 1 [OK] appcrash/fastdfs_nginx fastdfs with nginx 1 basemall/fastdfs-nginx fastdfs with nginx 1 [OK] manuku/fastdfs-tracker fastdfs tracker 1 [OK] john123951/fastdfs_storage fastdfs storage 1 [OK] tsl0922/fastdfs FastDFS is an open source high performance d… 0 [OK] lovetutu/fastdfs_fastdht fastdfs_fastdht_docker 0 manuku/fastdfs-storage-dht fastdfs storage dht 0 [OK] weyu/fastdfs FastDFS Storage for Centos7. 0 mypjb/fastdfs this is a fastdfs docker project 0 [OK]
2.拉取最新镜像
[root@hecs-356640 soft]# docker pull delron/fastdfs
3.查看拉取好的镜像
[root@hecs-356640 soft]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE delron/fastdfs latest 8487e86fc6ee 3 years ago 464MB
4.开始创建 tracker容器(跟踪服务器,起到调度的作用)
[root@hecs-356640 soft]# docker run -dti --network=host --name tracker -v /var/fdfs/tracker:/var/fdfs -v /etc/localtime:/etc/localtime delron/fastdfs tracker fe19b90260cb7ef308e8259168222b1df00318da18b3979df9f73e3dd441d996
5.开始创建storage容器(存储服务器,提供容量和备份服务)
[root@hecs-356640 soft]# docker run -dti --network=host --name storage -e TRACKER_SERVER=127.0.0.1:22122 -v /var/fdfs/storage:/var/fdfs -v /etc/localtime:/etc/localtime delron/fastdfs storage a62b8295fe05057e76b72b0a687127bfa80e79aad55cf637859a0a9643c14dee # 如果是内网就写内网IP例如 192.168.2.163,如果是想开外网就写公网IP,我是本服务器写的是127.0.0.1
6.可以看到正在运行的两个容器
[root@hecs-356640 soft]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a62b8295fe05 delron/fastdfs "/usr/bin/start1.sh …" 2 minutes ago Up 2 minutes storage fe19b90260cb delron/fastdfs "/usr/bin/start1.sh …" 4 minutes ago Up 4 minutes tracker
7.也可以看见监听的人端口
[root@hecs-356640 soft]# netstat -aon | grep 22122 tcp 0 0 0.0.0.0:22122 0.0.0.0:* LISTEN off (0.00/0/0)
这篇关于docker搭建FastDFS文件系统docker安FastDFS的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-19Docker-Compose容器集群化教程:从入门到实践
- 2024-11-19Docker镜像仓库教程:新手入门指南
- 2024-11-19Docker容器化部署教程:初学者指南
- 2024-11-18Docker-Compose容器集群化入门教程
- 2024-11-18Docker镜像仓库入门指南:轻松上手管理Docker镜像
- 2024-11-18Docker容器化部署入门教程:轻松掌握基础概念与实战技巧
- 2024-11-18Docker-Compose容器集群化学习入门教程
- 2024-11-18Docker镜像仓库学习:从入门到实践指南
- 2024-11-18Docker容器化部署学习:从入门到实践指南
- 2024-11-18Docker-Compose容器集群化入门:新手指南