FastDFS安装教程
1.下载
FastDFS下载:https://codeload.github.com/happyfish100/fastdfs/zip/master
库文件下载:https://codeload.github.com/happyfish100/libfastcommon/zip/master
2.安装
2.1安装库
unzip /tmp/libfastcommon.zip
cd libfastcommon-master
./make.sh
./make.sh install
2.2安装FastDFS
unzip fastdfs-master.zip
cd fastdfs-master
./make.sh
./make.sh install
3.配置
首先先创建一个目录用于存放日志和数据,如:mkdir -p /yxxt/fdfs
3.1配置并启动tracker
cd /etc/fdsf
cp tracker.conf.sample tracker.conf
vi tracker.conf
编缉tracker.conf主要修改base_path项为之前创建的目录:
base_path=/yxxt/fdfs
启动tracker:
service fdfs_trackerd start
3.2配置并启动storage
cd /etc/fdfs
cp storage.conf.sample storage.conf
vi storage.conf
编缉tracker.conf主要修改base_path项和tracker_server项:
base_path=/yxxt/fdfs
tracker_server=91.2.60.2:
启动storage:
service fdfs_storaged start
3.3配置client
cd /etc/fdsf
cp client.conf.sample client.conf
vi client.conf
编缉client.conf主要修改base_path和tracker_server两项:
base_path=/yxxt/fdfs
tracker_server=91.2.60.2:
4.测试
上传文件:
[root@ls ~]#fdfs_upload_file /etc/fdfs/client.conf /etc/passwd
group1/M00///WwI8AlnLdHOAaLXSAAAHtDz5_Fk1425909
查看文件信息:
[root@ls ~]#fdfs_file_info /etc/fdfs/client.conf group1/M00///WwI8AlnLdHOAaLXSAAAHtDz5_Fk1425909
source storage id:
source ip address: 91.2.60.2
file create timestamp: -- ::
file size:
file crc32: (0x3CF9FC59)
下载文件:
[root@ls ~]#fdfs_download_file /etc/fdfs/client.conf group1/M00///WwI8AlnLdHOAaLXSAAAHtDz5_Fk1425909 /tmp/testx
查看下载的文件是否有内容,内容和上传的文件是否一致:
cat /etc/testx
参考:
http://xinzong.blog.51cto.com/10018904/1834466
FastDFS安装教程的更多相关文章
- 分布式文件系统FastDFS安装教程
前言 FastDFS(Fast Distributed File System)是一款开源轻量级分布式文件系统,本文不讲解原理和架构,只是在个人使用部署过程中耗费了好长时间和精力,遇到了很多的坑,于是 ...
- fastdfs安装过程
Fastdfs于centos7的安装步骤(支持横向拓展) 主要目的:根据网上教程搭建时遇到的问题以及描述不明确的地方进行补充和说明 一.首先需要准备以下4个文件 nginx-1.12.0.tar.gz ...
- FastDFS安装全过程记录(V5.05)
FastDFS安装全过程记录 1.安装准备 HA虚拟IP:192.168.1.208 HA软件:Keepalived 操作系统:CentOS 7 用户:root 数据目录:/data/fastdfs ...
- FastDfs安装文档
安装顺序 libfastcommon fdfs_tracker ==> 依赖:Gcc.libevent.perl fdfs_storage FastDFS-nginx-module nginx ...
- Linux+apache+mono+asp.net安装教程
Linux+apache+mono+asp.net安装教程(CentOS上测试的) 一.准备工作: 1.安装linux系统(CentOS,这个就不多讲了) 2.下载所需软件 http-2.4.4.ta ...
- FastDFS 安装及使用
FastDFS 安装及使用 2012-11-17 13:10:31| 分类: Linux|举报|字号 订阅 Google了一下,流行的开源分布式文件系统有很多,介绍如下: mogileF ...
- Greenplum 源码安装教程 —— 以 CentOS 平台为例
Greenplum 源码安装教程 作者:Arthur_Qin 禾众 Greenplum 主体以及orca ( 新一代优化器 ) 的代码以可以从 Github 上下载.如果不打算查看代码,想下载编译好的 ...
- git 安装教程
昆,简单说下安装教程1,安装Git2,安装TortoiseGit3,打开第一步安装的git工具GIT BASH
- Docker和Docker-compose安装教程以及docker-elk,docker-storm安装教程
此安装教程仅供我自己安装配置时查看,其他的人不可以偷看!!! 安装Docker 1. Update package information, ensure that APT works with th ...
随机推荐
- error LNK2019-无法解析的外部符号 _main-该符号在函数 ___tmainCRTStartup 中被引用
问题分析: 因为Win32 console Application的入口函数是Main(),而Win32 Application的入口函数才是WinMain() 解决方案: 右键项目,打开[属性]页, ...
- 每日质量NPM包拖拽文件上传_react-dropzone
一.react-dropzone 官方定义: Simple HTML5-compliant drag'n'drop zone for files built with React.js. 理解: 一个 ...
- jquery.js 3.0报错, Uncaught TypeError: url.indexOf is not a function
转载自:http://majing.io/questions/432 问题描述 jQuery升级到3.0.0后类型错误 jquery.js:9612 Uncaught TypeError: url ...
- 1.1 vue.js devtools使用教程
1. vue.js devtools使用教程
- javaSE习题 第三章 运算符、表达式和语句
问答: 1.下列System.out.printf的结果是什么? int a=100,x,y; x=++a; y=a--; System.out.printf("%d,%d,%d" ...
- C/C++.文件是否存在
1. 2._access, _waccess.html(https://msdn.microsoft.com/en-us/library/1w06ktdy.aspx) int _access( con ...
- 力扣 报错 runtime error: load of null pointer of type 'const int'
runtime error: load of null pointer of type 'const int' 要求返回的是int* 解决方案 1.指针使用malloc分配空间 用 int * p = ...
- List、Map、Set的区别与联系
重复和有序 List 存储的元素是有顺序的,并且值允许重复: Map 元素按键值对存储,无放入顺序 ,它的键是不允许重复的,但是值是允许重复的: Set 存储的元素是无顺序的,并且不允许重复,元素虽然 ...
- Study之6 Neutron(配置使用 Routing)-devstack
●Neutron 的路由服务是由 l3 agent 提供的. 除此之外,l3 agent 通过 iptables 提供 firewall 和 floating ip 服务. l3 agent 需要正确 ...
- mybatis-generator-core 自动生成实体和Mapper
所谓mybatis-generator-core就是利用mybatis-generator-core.jar自动生成数据库对应的实体和映射文件.首先要下载mybatis-generator-core- ...