zoukankan      html  css  js  c++  java
  • ubuntu安装fastdfds

    ubuntu安装fastdfds


    • 安装fastdfds依赖
      • cd   /user/local      
      • wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
      • tar -zxvf V1.0.7.tar.gz
      • cd libfastcommon-1.0.7
      • ./make.sh
      • ./make.sh  install
    • 创建链接
      • ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
      • ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
      • ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
      • ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so
    • 安装fastdfds
      • cd /user/local
      • wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gz
      • tar -zxvf V5.05.tar.gz
      • cd fastdfs-5.05
      • ./make.sh
      • ./make.sh install
    • 创建链接
      • ln -s /usr/bin/fdfs_trackerd   /usr/local/bin
      • ln -s /usr/bin/fdfs_storaged   /usr/local/bin
      • ln -s /usr/bin/stop.sh             /usr/local/bin
      • ln -s /usr/bin/restart.sh          /usr/local/bin
    • 修改配置文件
      • 修改tracker.conf
        • cp   /etc/fdfs/tracker.conf.sample   /etc/fdfs/tracker.conf
        • vim  /etc/fdfs/racker.conf
          • base_path=/home/fastdfs/tracker
      • 修改storage.conf
        • cp    /etc/fdfs/storage.conf.sample   /etc/fdfs/storage.conf    
        • vim    /etc/fdfs/storage.conf    
          • group_name="<tracker.conf里面的group_name>"
          • base_path=/home/fastdfs/storage
          • store_path0=/home/fastdfs/save
          • tracker_server="你的tracker的IP地址和端口号"
      • 修改client.conf
        • cp    /etc/fdfs/client.conf.sample   /etc/fdfs/client.conf    
        • vim /etc/fdfs/client.conf   
          • base_path=/home/fastdfs/save
          • tracker_server="你的tracker的IP地址和端口号"
      • 创建base_path
        • cd /home
        • mkdir   fastdfs
        • cd fastdfs
        • mkdir storage
        • mkdir tracker
        • mkdir save
    • 启动tracker和storage
      • /usr/local/bin/fdfs_trackerd    /etc/fdfs/tracker.conf
      • /usr/local/bin/fdfs_storaged    /etc/fdfs/storage.conf
    • 上传文件测试
      • fdfs_upload_file /etc/fdfs/client.conf  文件路径
  • 相关阅读:
    mysql 按出现次数排序
    拼接sql
    java 操作 excel
    jQuery ui 利用 datepicker插件实现开始日期(minDate)和结束日期(maxDate)
    android压力测试命令monkey详解
    java css
    iss 默认上传大小为30 M
    PHP自动生成后台导航网址的最佳方法
    PHP 文件上传的综合实例
    php字符串首字母转换大小写的实例
  • 原文地址:https://www.cnblogs.com/ivy-blogs/p/11221358.html
Copyright © 2011-2022 走看看