docker run --name=fastdfstmp -tid centos /bin/bash

docker cp /home/fastdfs fastdfstmp:/home

docker exec -ti fastdfstmp /bin/bash

yum -y install wget net-tools gcc make cmake gcc-c++ unzip perl automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl openssl-devel

libfastcommon

cd /home/fastdfs

unzip libfastcommon-master.zip

cd libfastcommon-master

./make.sh

./make.sh install

fastdfs

cd /home/fastdfs

tar -zxvf FastDFS_v5..tar.gz

cd FastDFS

./make.sh

./make.sh install

tracker

cp /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf 

vi /etc/fdfs/tracker.conf 

base_path=/fastdfs/tracker

mkdir -p /fastdfs/tracker

/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf

storage

cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf 

vi /etc/fdfs/storage.conf

base_path=/fastdfs/storage

store_path0=/fastdfs/storage

tracker_server=127.0.0.1:

mkdir -p /fastdfs/storage

/usr/bin/fdfs_storaged /etc/fdfs/storage.conf

client

cp /etc/fdfs/client.conf.sample /etc/fdfs/client.conf 

vi /etc/fdfs/client.conf

base_path=/fastdfs/tracker

tracker_server=127.0.0.1:

/usr/bin/fdfs_upload_file /etc/fdfs/client.conf /etc/fdfs/client.conf

nginx module

cd /home/fastdfs

tar -zxvf fastdfs-nginx-module_v1..tar.gz

vi /home/fastdfs/fastdfs-nginx-module/src/config

CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"
CORE_LIBS="$CORE_LIBS -L/usr/lib -lfastcommon -lfdfsclient" cd /home/fastdfs tar -zxvf nginx-1.6..tar.gz cd nginx-1.6. ./configure --prefix=/usr/local/nginx --add-module=/home/fastdfs/fastdfs-nginx-module/src make && make install cp /home/fastdfs/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs vi /etc/fdfs/mod_fastdfs.conf tracker_server=172.17.0.12: url_have_group_name = true store_path0=/fastdfs/storage cd /home/fastdfs/FastDFS/conf cp http.conf mime.types /etc/fdfs ln -s /fastdfs/storage/data /fastdfs/storage/data/M00 vi /usr/local/nginx/conf/nginx.conf mkdir -p /home/fastdfs/conf/simple /usr/local/nginx/sbin/nginx
docker cp fastdfstmp:/etc/fdfs /home/fastdfs/conf/simple

docker commit fastdfstmp centos7/fastdfs508

docker stop fastdfstmp

docker rm fastdfstmp

cp /home/fastdfs/conf/simple /home/fastdfs/conf/tracker9701

docker run --name=fastdfs_tracker9701 -tid -p : -v /home/fastdfs/conf/tracker9701:/etc/fdfs centos7/fastdfs508 /bin/bash

docker exec -tid fastdfs_tracker9701 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf

cp /home/fastdfs/conf/simple /home/fastdfs/conf/storage9721

docker run --name=fastdfs_storage9721 -tid -p : -p : -v /home/fastdfs/conf/storage9721:/etc/fdfs centos7/fastdfs508 /bin/bash

docker exec -tid fastdfs_storage9721 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf

docker exec -tid fastdfs_storage9721 /usr/local/nginx/sbin/nginx
docker start fastdfs_tracker9701
docker exec -tid fastdfs_tracker9701 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
docker start fastdfs_storage9721
docker exec -tid fastdfs_storage9721 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf
docker exec -tid fastdfs_storage9721 /usr/local/nginx/sbin/nginx
rc.local

centos7 dokcer fastdfs的更多相关文章

  1. CentOS7 安装FastDFS分布式文件系统

    CentOS7 安装FastDFS分布式文件系统 最近要用到fastDFS,所以自己研究了一下,在搭建FastDFS的过程中遇到过很多的问题,为了能帮忙到以后搭建FastDFS的同学,少走弯路,与大家 ...

  2. centos7配置fastdfs集群(5.09)

    centos7配置fastdfs集群(5.09) 2017年03月10日 23:34:26 带鱼兄 阅读数 1564    版权声明:本文为博主原创文章,转载请注明出处. https://blog.c ...

  3. CentOS7搭建FastDFS V5.11分布式文件系统-第二篇

    1.CentOS7 FastDFS搭建 前面已下载好了要用到的工具集,下面就可以开始安装了: 如果安装过程中出现问题,可以下载我提供的,当前测试可以通过的工具包: 点这里点这里 1.1 安装libfa ...

  4. CentOS7 安装FastDFS单机版

    1. 下载 FastDFS https://github.com/happyfish100/fastdfs/releases libfastcommon https://github.com/happ ...

  5. CentOS7搭建FastDFS V5.11分布式文件系统(二)

    1.CentOS7 FastDFS搭建 前面已下载好了要用到的工具集,下面就可以开始安装了: 如果安装过程中出现问题,可以下载我提供的,当前测试可以通过的工具包: 点这里点这里 1.1 安装libfa ...

  6. CentOS7搭建FastDFS+Nginx

    1. FastDFS 介绍 FastDFS是一个开源的分布式文件系统,她对文件进行管理,功能包括:文件存储.文件同步.文件访问(文件上传.文件下载)等,解决了大容量存储和负载均衡的问题.特别适合以文件 ...

  7. CentOS7搭建FastDFS V5.11分布式文件系统及Java整合详细过程

    1.1 FastDFS的应用场景 FastDFS是为互联网应用量身定做的一套分布式文件存储系统,非常适合用来存储用户图片.视频.文档等文件.对于互联网应用,和其他分布式文件系统相比,优势非常明显.其中 ...

  8. CentOS7搭建FastDFS V5.11分布式文件系统-第三篇

    1.测试 前面两篇博文已对FastDFS的安装和配置,做了比较详细的讲解.FastDFS的基础模块都搭好了,现在开始测试下载. 1.1 配置客户端 同样的,需要修改客户端的配置文件: /etc/fdf ...

  9. CentOS7搭建FastDFS V5.11分布式文件系统-第一篇

    1.绪论 最近要用到fastDFS,所以自己研究了一下,在搭建FastDFS的过程中遇到过很多的问题,为了能帮忙到以后搭建FastDFS的同学,少走弯路,与大家分享一下.FastDFS的作者淘宝资深架 ...

随机推荐

  1. 分享一组矢量图标–UX图标字体库

    以下内容转自:http://ux.etao.com/,原文链接:http://ued.alimama.com/posts/219 科技日新月异的今天,市面上各种分辨率.各种显示精度的显示设备层出不穷, ...

  2. aischool 倒计时VIEW封装

    @implementation TWPaperTimeCountLabel { NSInteger miaoshu; dispatch_source_t _timer; } -(id)initWith ...

  3. (转)如何将本地git仓库上传到GitHub中托管+实践心得

    Git——新手入门与上传项目到远程仓库GitHub(转) - Chen_s - 博客园http://www.cnblogs.com/Chenshuai7/p/5486278.html 注意的问题: 1 ...

  4. LED将为我闪烁:控制发光二极管

      一个完整的linux驱动主要由内部处理和与硬件交互两部分组成.其中内部处理主要是指linux驱动的装载.卸载.与设备文件相关的动作处理以及业务逻辑等:与硬件交互主要是指通过iowrite32.io ...

  5. 滚动轮播效果,.net 没得混看来只能去写js 了

    <!DOCTYPE html> <html> <head> <title> 滚动图片 </title> <style type=&qu ...

  6. php开发客服系统(持久连接+轮询+反向ajax 转载 http://www.tuicool.com/articles/2mU7v2R)

    php开发客服系统( 下载源码 ) 用户端(可直接给客户发送消息) 客服端(点击用户名.即可给该用户回复消息) 讲两种实现方式: 一:iframe + 服务器推技术comet(反向ajax,即服务器向 ...

  7. swift基础:第四部分:对函数和闭包的深入

    ()之前在什么公司,都自己做过哪些项目,从架构的角度来谈谈你的项目. () 你对iOS不同版本是怎么看的,你在做项目的过程当中,是如何应对版本问题的. () 你对iOS的性能是怎么优化的. () 你通 ...

  8. CentOS下搭建LAMP环境详解

    前言:在这里将介绍如何在CentOS下搭建LAMP环境(全部使用源码编译安装),用于web服务器开发. •LAMP: Linux + Apache + PHP + Mysql. •系统: CentOS ...

  9. [liusy.api-SMJ]-SMJ 介绍 学习阶段(二)

    我选择的是  Spring + Mybatis + Jesery 无状态架构方案. JAVA 比较常用的架构 SSH spring struts2 hibernate流行一阶段后, SSM   spr ...

  10. Something about Linux

    Linux-一切皆文件 VMnet1   Host-Only网络下的虚拟交换机      VMnet8  虚拟NAT网络下的虚拟交换机 桥接模式 虚拟出同一网段下都能访问的服务器 ---------- ...