zoukankan      html  css  js  c++  java
  • FastDFS 安装步骤

    快速安装
    1.安装libfastcommon
    # ./make.sh
    #./make.sh install 
    2.安装fastdfs
    # ./make.sh
    # ./make.sh install



    详细步骤
    1.下载安装包
       
    源码在google的code服务器上有,不想翻墙了,直接去源码中国下载了。
       目前最新版本为5.05   全名  fastdfs-5.05.tar.gz
       或者去这里下载:(版本又更新了5.11)
          https://github.com/happyfish100/fastdfs/releases/tag/V5.10

        
    2.安装网络驱动包(最新的fastdfs,安装支持插件libfastcommon即可,不在需要libevent了
       fastdfs 需要一个网络驱动包  libevent;
        我直接用yum安装了;
    # yum list libevent
    Loaded plugins: fastestmirror, refresh-packagekit, security
    Loading mirror speeds from cached hostfile
     * base: mirrors.aliyun.com
     * extras: mirrors.aliyun.com
     * updates: mirrors.aliyun.com
    base                                                                                         | 3.7 kB     00:00     
    extras                                                                                       | 3.4 kB     00:00     
    updates                                                                                      | 3.4 kB     00:00     
    Installed Packages
    libevent.x86_64                                          1.4.13-4.el6                                          @base
    Available Packages
    libevent.i686                                            1.4.13-4.el6                                          base 

     #yum install libevent.x86_64



    3.安装程序
    解压  tar -zxvf fastdfs-5.05.tar.gz
    进入文件中 cd  fastdfs-5.05
    开始安装 ./make.sh
             * 报错        ./make.sh: line 14: gcc: command not found
                                    gcc没装就会这样子,装上它就好了
                                     
    # yum install gcc

    继续安装./make.sh
              *报错        make: *** [../common/fdfs_global.o] Error 1
                   (
    看源码目录下的INSTALL文件发现,需要安装libfastcommon

         下载安装
    libfastcommon
                    到https://github.com/happyfish100/libfastcommon  点击绿色按钮下载  libfastcommon-master.zip
                    上传解压    unzip libfastcommon-master.zip       
             安装
    libfastcommon  
                        
    # ./make.sh
                    #./make.sh install 
                      *报错
                   
       [root@ libfastcommon-master]# ./make.sh install
                                                               mkdir -p /usr/lib64
                                                               mkdir -p /usr/lib
                                                               install -m 755 libfastcommon.so /usr/lib64
                                            install: cannot change permissions of `/usr/lib64/libfastcommon.so': Permission denied
                                                                make: *** [install] Error 1
                                        (经过测试,安装程序和root身份都无法修改libfastcommon.so这个文件权限为755
                                         (多个技术论坛发帖都无法解决,暂时跳过,放弃了原来的机器Centos6.3)
                                          (换了一台Centos7机器安装,没出现问题)
                                             原因找到了,原来那台装了 安全狗,所以无法建目录……
                                      
       重新整理一下:
           1.首先安装支持插件libfastcommon  
                  
    [root@localhost libfastcommon-master]# ./make.sh 
                  
    [root@localhost libfastcommon-master]# ./make.sh install
    mkdir -p /usr/lib64
    mkdir -p /usr/lib
    install -m 755 libfastcommon.so /usr/lib64
    install -m 755 libfastcommon.so /usr/lib
    mkdir -p /usr/include/fastcommon
    install -m 644 common_define.h hash.h chain.h logger.h base64.h shared_func.h pthread_func.h ini_file_reader.h _os_define.h sockopt.h sched_thread.h http_func.h md5.h local_ip_func.h avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h fast_timer.h process_ctrl.h fast_mblock.h connection_pool.h fast_mpool.h fast_allocator.h fast_buffer.h skiplist.h multi_skiplist.h flat_skiplist.h skiplist_common.h system_info.h fast_blocked_queue.h php7_ext_wrapper.h id_generator.h /usr/include/fastcommon
                    安装完成

         2.安装FastFDS 
                  # ./make.sh
                             报错:./make.sh: line 184: perl: command not found
                                         ./make.sh: line 185: perl: command not found
                                         ./make.sh: line 186: perl: command not found
                              安装perl   # yum install perl

                 # ./make.sh install


           


  • 相关阅读:
    复利计算-做汉堡,结对2.0-复利计算再升级
    java集合
    java 封装,继承,多态基础
    购物车
    ajax
    演示
    实验四
    实验三
    构建之法6-7章读后感
    作业调度模拟程序
  • 原文地址:https://www.cnblogs.com/centos2017/p/7896760.html
Copyright © 2011-2022 走看看