centos7 dokcer fastdfs
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的更多相关文章
- CentOS7 安装FastDFS分布式文件系统
CentOS7 安装FastDFS分布式文件系统 最近要用到fastDFS,所以自己研究了一下,在搭建FastDFS的过程中遇到过很多的问题,为了能帮忙到以后搭建FastDFS的同学,少走弯路,与大家 ...
- centos7配置fastdfs集群(5.09)
centos7配置fastdfs集群(5.09) 2017年03月10日 23:34:26 带鱼兄 阅读数 1564 版权声明:本文为博主原创文章,转载请注明出处. https://blog.c ...
- CentOS7搭建FastDFS V5.11分布式文件系统-第二篇
1.CentOS7 FastDFS搭建 前面已下载好了要用到的工具集,下面就可以开始安装了: 如果安装过程中出现问题,可以下载我提供的,当前测试可以通过的工具包: 点这里点这里 1.1 安装libfa ...
- CentOS7 安装FastDFS单机版
1. 下载 FastDFS https://github.com/happyfish100/fastdfs/releases libfastcommon https://github.com/happ ...
- CentOS7搭建FastDFS V5.11分布式文件系统(二)
1.CentOS7 FastDFS搭建 前面已下载好了要用到的工具集,下面就可以开始安装了: 如果安装过程中出现问题,可以下载我提供的,当前测试可以通过的工具包: 点这里点这里 1.1 安装libfa ...
- CentOS7搭建FastDFS+Nginx
1. FastDFS 介绍 FastDFS是一个开源的分布式文件系统,她对文件进行管理,功能包括:文件存储.文件同步.文件访问(文件上传.文件下载)等,解决了大容量存储和负载均衡的问题.特别适合以文件 ...
- CentOS7搭建FastDFS V5.11分布式文件系统及Java整合详细过程
1.1 FastDFS的应用场景 FastDFS是为互联网应用量身定做的一套分布式文件存储系统,非常适合用来存储用户图片.视频.文档等文件.对于互联网应用,和其他分布式文件系统相比,优势非常明显.其中 ...
- CentOS7搭建FastDFS V5.11分布式文件系统-第三篇
1.测试 前面两篇博文已对FastDFS的安装和配置,做了比较详细的讲解.FastDFS的基础模块都搭好了,现在开始测试下载. 1.1 配置客户端 同样的,需要修改客户端的配置文件: /etc/fdf ...
- CentOS7搭建FastDFS V5.11分布式文件系统-第一篇
1.绪论 最近要用到fastDFS,所以自己研究了一下,在搭建FastDFS的过程中遇到过很多的问题,为了能帮忙到以后搭建FastDFS的同学,少走弯路,与大家分享一下.FastDFS的作者淘宝资深架 ...
随机推荐
- eclipse配置项目
project facets -> dynamic web module 2.5 java -> 1.6 deployment assembly -> webapp Web Proj ...
- Mac iTerm2命令行快捷操作
control + R 搜索之前输入过的命令 control + U 删除整行命令 control + W 删除光标前面的命令 control + K 删除光标后面的命令
- Ubuntu 16.04 Steam
Ubuntu 16.04安装Steam,直接去Steam官网下载客户端安装包即可.
- [转]asp三级select菜单联动(加数据库)
'数据库结构'类别1表名称:a 字段:ID,Name 说明:ID为主键是类别1的ID值,Name为类别1的名称'类别2表名称:aa 字段:ID,aID,Name 说明:ID为主键是类别2的ID值,aI ...
- 什么情况下会用到try-catch
本文不区分语言,只为记录一次有收获的面试. 面试官:什么情况下用到try-catch?程序员:代码执行预料不到的情况,我会使用try-catch.面试官:什么是预料不到的情况呢?程序员:比如我要计算a ...
- 《玩转D语言系列》三、轻松大跃进,把它当C语言先用起来
前面说过,本系列文章的前提是您懂C语言,懂面向对象中的一些概念,如果没有任何变成基础,从零开始学习D语言将是一个漫长的过程,因为很多概念都要重新诠释,让一个没有基础的人经过漫长的学习过程,然后还找不到 ...
- rdesktop的使用
整个地球都知道rdesktop,有了它,我们可以从Solaris或者Linux使用Windows,当然Windows要开启Windows Terminal Service.虽然也有基于GTK+的tsc ...
- SSIS变量属性中EvaluateAsExpression设置的作用
我们在做SqlServer SSIS包开发的时候,经常会用到SSIS的变量,我们可以使用和修改SSIS变量的值使得SSIS包的逻辑更灵活,如下图所示: 在定义SSIS变量的时候可以使用固定值(如上图中 ...
- Sublime一键预览
//chrome{ "keys": [ "f12" ], "command": "side_bar_files_open_with ...
- 一周试用yii开发一个带各种该有功能的web程序(二)
上篇随笔写完的是yii能使用简单的命令创建出一个基本的架构,我们只需要在这个架构上进行代码编写,扩展功能.而生成的一个小型系统是可以操作的,但是不是我们想要的,所以,这篇结合源码讲如何创建出我们自己的 ...