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. JSP 登录与注册的小案例之二(无验证码,前端拦截空参)

    <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http:// ...

  2. spring的多个PropertyPlaceholderConfigurer实例装配的问题

    1. 默认情况下,使用PropertyPlaceholderConfigurer多实例装配出现异常 在项目中尝试 在不同的spring的配置文件中分别引入相应的properties文件,这样会在spr ...

  3. 解决从jenkins打开robot framework报告会提示‘Opening Robot Framework log failed ’的问题

    最新的jenkins打开jenkins robot framework报告会提示如下 Verify that you have JavaScript enabled in your browser.  ...

  4. JDK的安装与配置以及eclipse的使用

    一,需要软件: jdk 和eclipse 二,JDK和eclipse的下载 JDK下载地址:http://www.oracle.com/technetwork/java/javase/download ...

  5. PHP设计模式之:单例模式

        前 些日子开始着真正的去了解下设计模式,开始么,简单地从单例模式开始,当然网上看了一些资料,单例模式比较好理解,看看介绍,然后看看代码基本也就能够理 解了,设计模式这些的花点心思基本的是能够理 ...

  6. 通过jxl 读取excel 文件中的日期,并计算时间间隔

    java读取excel里面的日期会出现相差8小时的问题. 比如excel里面有一个日期是:2012-7-2 17:14:03秒,用Cell cell=readSheet.getCell(colNo, ...

  7. [LeeCode]Power of Two

    Given an integer, write a function to determine if it is a power of two. My initial code: class Solu ...

  8. Protocols

  9. Qt QObject

    [1]Qt的QObject 1.测试代码如下: #include<QApplication> #include<QPushButton> #include<QDebug& ...

  10. Thinkphp学习回顾(二)之config.php的配置

    常见配置项 <? return array( //'配置项'=>'配置值' 'TMPL_L_DELIM'=>'<{', //修改左定界符,防止其与js中的代码重合,发生造成问题 ...