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的作者淘宝资深架 ...
随机推荐
- Python —条件语句
条件语句 Python条件语句是通过一条或多条语句的执行结果(True或者False)来决定执行的代码块. 可以通过下图来简单了解条件语句的执行过程: Python程序语言指定任何非0和非空(null ...
- E-Business Suite 12.2 startCD 50 Install Fails with Fatal Error: TXK Install Service oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed Cannot install Web Tier Utilities
在rhel7.2上,使用startCD 50安装ebs r12.2的使用,安装到38%的时候就报错,遇到了和以下文章类似的问题: http://www.cnblogs.com/abclife/p/49 ...
- Leetcode: Convex Polygon
Given a list of points that form a polygon when joined sequentially, find if this polygon is convex ...
- 向指定URL发送GET方法获取资源,编码问题。 Rest风格
http编码.今天遇到获取网页上的数据,用HTTP的GET请求访问url获取资源,网上有相应的方法.以前一直不知道什么事rest风格,现在我想就是开一个Controller,然后使人可以调用你的后台代 ...
- c/c++ qsort 函数 结构体简单使用(1)
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct student ...
- iOS设置cell选中时文字颜色的变化
cell.titleStr.highlightedTextColor = EMCGreenColor;
- 关于针对class自定义new操作符失败的函数处理
#include <iostream> #include <new> using namespace std; class CSaveCurHandler //用于管理new_ ...
- 找出数组中从未出现的最小正整数java实现
/** * 找出未出现的最小正整数 * @param A * @param n * @date 2016-10-7 * @author shaobn */ public static int find ...
- 利用spring boot创建java app
利用spring boot创建java app 背景 在使用spring框架开发的过程中,随着功能以及业务逻辑的日益复杂,应用伴随着大量的XML配置和复杂的bean依赖关系,特别是在使用mvc的时候各 ...
- 客户端使用java,服务端使用c++的corba编程环境搭建
我们先用c++实现服务端和客户端,然后再用java编写客户端. 1. 首先安装omniORB,omniORB提供 omniidl命令,以及一些头文件和库. omniORB一般是需要你自己进行编译. 2 ...