a、上传安装时需要的文件

①:FastDFS_v5.05.tar.gz
②:fastdfs-nginx-module_v1.16.tar.gz
③:libfastcommon-1.0.7.tar.gz
④:nginx-1.8.0.tar.gz

b、安装FastDFS之前,先安装libevent

[root@localhost /]# yum -y install libevent

c、安装 libfastcommon-1.0.7.tar.gz 工具包

①:[root@localhost ~]# tar -zxvf libfastcommon-1.0.7
②:[root@localhost libfastcommon-1.0.7]# ./make.sh
③:[root@localhost libfastcommon-1.0.7]# ./make.sh install
④:把/usr/lib64/libfastcommon.so文件向/usr/lib/下复制一份
[root@localhost lib64]# cp /user/lib64/libfastcommon.so /user/lib

d、安装Tracker服务

①:[root@localhost ~]# tar -zxvf FastDFS_v5.05.tar.gz
②:[root@localhost FastDFS]# ./make.sh
③:[root@localhost FastDFS]# ./make.sh install
  安装后在/usr/bin/目录下有以fdfs开头的文件都是编译出来的,配置文件都放到/etc/fdfs文件夹
④:把/root/FastDFS/conf目录下的所有的配置文件都复制到/etc/fdfs下
[root@localhost ~]# cp /root/FastDFS/conf /etc/fdfs -r
⑤:配置tracker服务。修改/etc/fdfs/tracker.conf文件。

⑥:启动tracker:/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
  重启使用命令:/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart

e、安装storage服务

①:如果是在不同的服务器安装,第四步的1~4需要重新执行
②:配置storage服务。修改/etc/fdfs/storage.conf文件

f、测试服务

①:修改配置文件/etc/fdfs/client.conf

②:测试
[root@localhost FastDFS]# /usr/bin/fdfs_test /etc/fdfs/client.conf upload anti-steal.jpg

g、搭建nginx提供http服务

①:[root@localhost ~]# tar -zxvf fastdfs-nginx-module_v1.16.tar.gz
②:[root@localhost ~]# tar -zxvf nginx-1.8.0.tar.gz
③:修改/root/fastdfs-nginx-module/src/config文件,把其中的local去掉

④:对nginx重新config
[root@localhost nginx-1.8.0]#
./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/root/fastdfs-nginx-module/src ⑤:[root@localhost nginx-1.8.0]# make
[root@localhost nginx-1.8.0]# make install
⑥:把/root/fastdfs-nginx-module/src/mod_fastdfs.conf文件复制到/etc/fdfs目录下

⑦:nginx的配置
  在nginx的配置文件中添加一个Server:
  server {
  listen 80;
  server_name 192.168.0.11;   location /group1/M00/{
  #root /home/FastDFS/fdfs_storage/data;
  ngx_fastdfs_module;
  }
  }
⑧:将libfdfsclient.so拷贝至/usr/lib下
[root@localhost sbin]# cp /usr/lib64/libfdfsclient.so /usr/lib/
⑨:启动nginx
[root@localhost sbin]# ./nginx

h、启动FastDFS

①:启动tracker:  /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
②:启动storage: /usr/bin/fdfs_storaged /etc/fdfs/storage.conf

致此结束……

关注我的公众号,精彩内容不能错过

FastDFS搭建的更多相关文章

  1. FastDFS搭建分布式文件系统

    FastDFS搭建分布式文件系统 1. 什么是分布式文件系统 分布式文件系统(Distributed File System)是指文件系统管理的物理存储资源不一定直接连接在本地节点上,而是通过计算机网 ...

  2. [转帖]使用fastdfs搭建文件管理系统

    使用fastdfs搭建文件管理系统 https://www.jianshu.com/p/4e80069c84d3 今天同事说他们的系统用到了这个分布式文件管理系统. 一.FastDFS介绍 FastD ...

  3. FastDFS搭建单机图片服务器(二)

    防丢失转载:https://blog.csdn.net/MissEel/article/details/80856194 根据 分布式文件系统 - FastDFS 在 CentOS 下配置安装部署 和 ...

  4. FastDFS搭建单机图片服务器(一)

    防丢失转载:https://blog.csdn.net/MissEel/article/details/80856194 根据 分布式文件系统 - FastDFS 在 CentOS 下配置安装部署 和 ...

  5. FastDFS搭建及java整合代码【转】

    FastDFS软件介绍 1.什么是FastDFS FastDFS是用C语言编写的一款开源的分布式文件系统.FastDFS为互联网量身定制,充分考虑了冗余备份.负载均衡.线性扩容等机制,并注重高可用.高 ...

  6. Centos7下用FastDFS搭建图片服务器

    1.所用到的工具: 1.FastDFS_v5.05.tar 2.fastdfs-nginx-module_v1.16.tar 3.libfastcommonV1.0.7.tar 4.nginx-1.1 ...

  7. FastDFS 搭建

    #FastDFS安装方式 安装必要插件:libevent  (此次搭建方案采用libevent 1.4.13)   wget http://fastdfs.googlecode.com/files/F ...

  8. Centos7 FastDFS 搭建

    安装libfastcommon 首先第一步是安装libfastcommon,我这里将libfastcommon上传到的/opt目录下,直接解压: yum -y install gcc-c++ yum ...

  9. FastDFS搭建文件管理系统

    参考:https://www.cnblogs.com/chiangchou/p/fastdfs.html 目录: 一:FastDFS介绍 1:简介: FastDFS 是一个开源的高性能分布式文件系统( ...

随机推荐

  1. Python 递归 Resursion()

    条件: ①递归有最小值或有确定值 ②fun(x) = ax * bfun(x-1) 类似规则 eg.   n! : ①1! = 1 ②n! = n* (n-1)! def factorial (n): ...

  2. 如何用kaldi做孤立词识别二

    基本模型没有变化,主要是调参,配置: %WER     65%  下降到了     15% 后面再继续优化... Graph compilation finish!steps/decode.sh -- ...

  3. 工作了才发现display全忘了

    CSS display属性这几天用的我头疼 人老了 健忘了 1.inline(行内元素) 是元素变成行内元素,拥有行内元素特性,共享属性,不会吃独食! 共享经济时代 inline是主导大哥 !impo ...

  4. JS 实现触发下载内容(H5 download)

    概述 我对使用js控制下载非常感兴趣,在网上查资料的时候碰巧看到了相关实现方法,记录下来供以后开发时参考,相信对其他人也有用. 参考资料: JS前端创建html或json文件并浏览器导出下载 理解DO ...

  5. 和我一起熟悉caffe2

    caffe2 是一个深度学习架构,它提供了一种简易快速的方法为让你能否迅速接触深度学习并能为社区贡献新的算法和模型.你可以把作品部署到有很强计算能力的GPU上,也可以把作品部署到有caffe2交叉编译 ...

  6. TS - 解决问题的一些方法

    How to resolve the problem? 获取基本的相关信息(后续处理问题的基础)  在怎样的背景环境下?发生了怎样的问题? 如果无法清楚地辨别或陈述问题的基本信息,那么,此时要面对的将 ...

  7. 微信小程序分包加载实战

    "离线包"机制 微信小程序采用的是类似离线包加载方案,以转转小程序为例,当用户第一次打开时会先下载好所有代码,然后再加载页面:当用户再次进入转转小程序时,会直接使用已下载的代码,省 ...

  8. vscode mysql v0.3插件 连接不了

    环境: centos7.6  x64 python 3.6 插件mysql v0.3 解决办法:回滚插件版本v0.2.3 使用方法注意: https://www.cnblogs.com/-admin- ...

  9. [Shell]sed命令在MAC和Linux下的不同使用方式

    ---------------------------------------------------------------------------------------------------- ...

  10. Struts1入门实例(简单登录)

    Struts1入门实例(简单登录) 现在开始加入公司的核心项目,但由于项目开发比较早,所以使用的技术不是很新潮,前台用的还是struts1. 虽然不是什么新技术,但仍可以从中学到好多东西的.花了一个晚 ...