FastDFS5.0.9基本安装配置
来源:互联网 发布:女朋友说有人撩她 知乎 编辑:程序博客网 时间:2024/05/16 08:08
1、在线安装依赖
wget https://github.com/happyfish100/libfastcommon/archive/master.zip
unzip master.zip
cd libfastcommon-master
./make.sh
./make.sh install2、安装FastDFSrm -f master.zipwget https://github.com/happyfish100/fastdfs/archive/master.zipunzip master.zipcd fastdfs-master./make.sh./make.sh install3、配置
cd /etc/fdfs
四个文件去掉后缀 .sample
client.conf storage.conf storage_ids.conf tracker.conf
创建配置文件目录
mkdir -p /opt/fastdatas/basemkdir /opt/fastdatas/clientmkdir /opt/fastdatas/storage1mkdir /opt/fastdatas/tracker修改/etc/fdfs/tracker.conf配置项base_path=/opt/fastdatas/tracker修改/etc/fdfs/storage.conf/usr/bin/fdfs_trackerd /etc/fdfs/tracker.confbase_path=/opt/fastdatas/storage1tracker_server=本机局域网IP:22124、启动FastDFS修改/etc/fdfs/client.confbase_path=/opt/fastdatas/client
store_lookup=1
store_group=group1
store_path0=/opt/fastdatas/storage1
tracker_server=本机局域网IP:22122
注:非负载均衡模式下暂时指定group1
服务启动方式
service fdfs_trackerd startservice fdfs_storaged starttracker: ./init.d/fdfs_trackerd start /etc/fdfs/tracker.conf或者手工启动执行ps -ef|grep fdfs显示/usr/bin/fdfs_storaged /etc/fdfs/storage.conf/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
cd /opt/fastdfs-master
storage: ./init.d/fdfs_storage start /etc/fdfs/storage.conf
执行ps -ef|grep fdfs显示
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf
5、测试cd /opt/fastdfs-master/conffdfs_test /etc/fdfs/client.conf upload ./anti-steal.jpg显示:This is FastDFS client test program v5.10Copyright (C) 2008, Happy Fish / YuQingFastDFS may be copied only under the terms of the GNU GeneralPublic License V3, which may be found in the FastDFS source kit.Please visit the FastDFS Home Page http://www.csource.org/ for more detail.DEBUG - base_path=/appdata/fastdatas/client, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0tracker_query_storage_store_list_without_group: server 1. group_name=, ip_addr=本机IP, port=23000group_name=group1, ip_addr=本机IP, port=23000storage_upload_by_filenamegroup_name=group1, remote_filename=M00/00/00/rB-EOFjzTAOANXR9AABdrZgsqUU431.jpgsource ip address: 本机IPfile timestamp=2017-04-16 18:48:35file size=23981file crc32=2553063749example file url: http://本机IP/group1/M00/00/00/rB-EOFjzTAOANXR9AABdrZgsqUU431.jpgstorage_upload_slave_by_filenamegroup_name=group1, remote_filename=M00/00/00/rB-EOFjzTAOANXR9AABdrZgsqUU431_big.jpgsource ip address: 本机IPfile timestamp=2017-04-16 18:48:35file size=23981file crc32=2553063749example file url: http://本机IP/group1/M00/00/00/rB-EOFjzTAOANXR9AABdrZgsqUU431_big.jpg
阅读全文
0 0
- FastDFS5.0.9基本安装配置
- FastDFS5.0.9基本安装配置
- FastDFS5.0.9基本安装配置
- 安装fastdfs5.0.1
- FastDFS5.05集群安装部署
- 在 CentOS6.8 下配置安装部署FastDFS5.05+Nginx模块上传测试
- fastdfs5.0.5+nginx安装+tracker+storage
- redhat6.4 安装FastDFS5.03、5.05
- nginx1.11.7 fastdfs5.08 Ubuntu16.04负载配置
- FastDFS5.05 linux 集群部署详细安装教程
- centos7下的FastDFS5.09的安装与使用
- SVN基本安装、配置!
- Nginx基本安装配置
- kohana基本安装配置
- HBASE基本安装配置
- varnish基本安装配置
- redis安装基本配置
- swoole安装基本配置
- 基于AngularJS前端路由,实现一个最简单的图片翻页查看器
- linux进程内存空间分为哪几个段?
- android用webview加载H5页面出现点击事件失效的问题解决
- TextView属性
- java多线程编程核心技术笔记-停止线程interrupt()方法
- FastDFS5.0.9基本安装配置
- 每日一题(13)—— #include<file.h> 与 #include “file”的区别
- jquery设计思想书目录
- java之反射机制
- 牛客网编程题-包含min函数的栈(java)
- libxml库移植
- windows平台tomcat8命令窗口启动内存优化及环境配置
- 编译失败
- js中call()和apply()的区别