centos7下安装fastdfs
来源:互联网 发布:视倾角换算软件 编辑:程序博客网 时间:2024/06/05 00:39
参考文献:http://dorole.com/tag/fastdfs/
- 安装编译环境
- yum -y groupinstall 'Development Tools'
- yum -y install wget
- 下载安装libfastcommon
- git clone https://github.com/happyfish100/libfastcommon.git
- cd libfastcommon/
- ./make.sh
- ./make.sh install
- 下载安装fastdfs
- 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
- 修改配置文件
- 创建目录,存储日志和数据,如下
- -data
- -fdfs
- -tracker
- -storage
- -client
- 配置tracker
- cd /etc/fdfs
- mv tracker.conf.sample tracker.conf
- vi tracker.conf
- //...
- base_path=/data/fdfs/tracker
- //...
- 配置storage
- cd /etc/fdfs
- mv storage.conf.sample storage.conf
- vi storage.conf
- //...
- base_path=/data/fdfs/storage #指定日志位置
- store_path0=/data/fdfs/storage #指定数据位置
- tracker_server=192.168.153.130:22122 #指定tracker服务器地址
- //...
- 配置client
- cd /etc/fdfs
- mv client.conf.sample client.conf
- vi client.conf
- //...
- base_path=/data/fdfs/client
- tracker_server=192.168.153.130:22122
- //...
- 启动tracker和storage
- /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
- /usr/bin/fdfs_storaged /etc/fdfs/storage.conf
可通过日志查看是否启动成功
- tail -f /data/fdfs/storage/logs/storaged.log
- tail -f /data/fdfs/tracker/logs/trackerd.log
- 测试
利用dfds自带的测试类进行测试
- #上传
- /usr/bin/fdfs_test /etc/fdfs/client.conf upload /home/lily/a.txt
- #下载
- /usr/bin/fdfs_download_file /etc/fdfs/client.conf group1/M00/00/00/wKiZglauvkmANC2wAAAAPpWmuhI171.txt
- #删除
- /usr/bin/fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/wKiZglauvkmANC2wAAAAPpWmuhI171.txt
注:路径中的M00是基路径。fastdfs支持多个磁盘(base_path),如果base_path只有一个,那么就是M00,如果有两个,第二个是M01(Mxx中xx是十六进制
转载自:http://blog.csdn.net/xll233xx/article/details/50619170
转载自:http://blog.csdn.net/xll233xx/article/details/50619170
阅读全文
0 0
- centos7下安装fastdfs
- centos7下安装fastdfs
- centos7下安装fastdfs+nginx
- centos7安装FastDFS
- linux下安装FastDFS
- CentOS下安装FastDFS
- FastDFS(1):Centos7 安装FastDFS+nginx module
- linux centos7 分布式文件系统fastdfs安装配置
- Centos7 fastdfs/nginx 安装与配置
- linux 下安装fastdfs-client
- Linux下安装配置FastDFS
- centOs7.0 下部署 fastdfs 集群 并配置负载均衡
- Centos7安装Nginx以及与FastDFS的结合
- FastDfs (四) Fastdfs安装
- 【FastDFS】FastDFS安装配置
- centos7.1 FastDFS配置
- Centos7 FastDFS搭建
- linux下安装FastDFS的疑难问题解决
- 屏蔽系统热键的方法总结
- 校招编程题集锦
- [NDK]APP_ALLOW_MISSING_DEPS=true to allow missing dependencies
- \r与\n的区别,\r\n与\n或\r的区别(C语言/C#)
- 【Java面试知识点】Java虚拟机
- centos7下安装fastdfs
- 自定义数组类(动态数组实现)
- Linux环境安装Mysql数据库(手工+自动两种 详细版)
- 20170819
- Android Studio 快捷键
- 7.行高、边框、边距
- STM32串口中断接收一个完整的数据帧
- Set集合HashSet,TreeSet
- hdu2602(01背包)