Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F fastdht
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • YuQing
  • fastdht
  • Wiki
  • Home

Home · Changes

Page history
Updated Home (markdown) authored Apr 11, 2019 by blank-1's avatar blank-1
Hide whitespace changes
Inline Side-by-side
Home.md
View page @ c4a823a7
# 一、前言
FastDHT解决FastDFS重复文件上传,不支持重复文件去重的造成磁盘资源浪费的痛点。
FastDHT是分布式哈希系统(DHT),使用BerkeleyDB做数据存储,使用libevent做网络IO处理。依赖于libfastcommon。
......@@ -38,10 +37,11 @@ cd fastdht-master
最后会在/usr/local/bin生成安装后的文件,在/etc/fdht下生成配置文件。
# 二、环境配置
## 1、创建目录
```
mkdir /fastdht
```
``
## 2、修改fdhtd.conf文件
```
vim /etc/fdht/fdhtd.conf
......@@ -92,7 +92,7 @@ fdhtd /etc/fdht/fdhtd.conf restart
若缺少libdb-6.0.so
cp /usr/local/db-6.0.30/lib/libdb-6.0.so /usr/lib/
ldd /usr/local/bin/fdhtd
``
```
## 4、执行ldconfig命令
ldconfig
(ldconfig命令的用途, 主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录下, 搜索出可共享的动态链接库(格式如lib*.so*), 进而创建出动态装入程序(ld.so)所需的连接和缓存文件. 缓存文件默认为/etc/ld.so.cache, 此文件保存已排好序的动态链接库名字列表)
......@@ -111,4 +111,6 @@ ldconfig
`chmod +x /etc/rc.local `
## 9、验证
多次执行命令来上传同一个文件:` fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/nginx-1.15.4.tar.gz`
在../fastdfs/storage/data/00/01目录,存在多个软连接,说明FastDHT文件去重功能已经成功实现
\ No newline at end of file
在../fastdfs/storage/data/00/01目录,存在多个软连接,说明FastDHT文件去重功能已经成功实现
\ No newline at end of file
Clone repository
  • Home