GithubHelp home page GithubHelp logo

fastdfs-docker's Introduction

FastDFS

目录介绍

conf

Dockerfile 所需要的一些配置文件 当然你也可以对这些文件进行一些修改 比如storage.conf里面的bast_path等相关

使用方法

需要注意的是你需要在运行容器的时候指定启动模式,用参数FASTDFS_MODE来指定

启动tracker

docker run -d -e FASTDFS_MODE=tracker -e RESERVED_STORAGE_SPACE=10G -p 22122:22122--name tracker yaokun/fastdfs:V6.09

RESERVED_STORAGE_SPACE可以是具体的GB、MB、KB、B

也可以是百分百,如:10%

启动storage

需要注意的是storage模式需要指定tracker服务地址,用参数TRACKER_SERVER来指定

兼容docker及k8s中服务名称的写法,比如fdfs-tracker:22122

docker run -d -e FASTDFS_MODE=storage -e TRACKER_SERVER=192.168.1.2:22122 -p 80:80 -p 23000:23000 --name tracker yaokun/fastdfs:V6.09

状态检查

fdfs_monitor /etc/fdfs/client.conf

测试上传

进入docker

docker exec -it fastdfs /bin/bash

创建文件

echo "Hello FastDFS">test.txt

fastdfs自带命令上传

fdfs_test /etc/fdfs/client.conf upload test.txt

fastdfs-docker's People

Contributors

bwcxyk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.