`
thly1234
  • 浏览: 10315 次
  • 来自: 厦门
社区版块
存档分类
最新评论

FastDFS安装使用(二) 配置

阅读更多
FastDFS的配置文件在%FastDFS%/conf目录下,其中包括
Client.conf    客户端上传配置文件
Storage.conf    文件存储服务器配置文件
Tracker.conf    负责均衡调度服务器配置文件
http.conf        http服务器配置文件
1、配置及启动Tracker Server
1.1 修改%FastDFS%/conf/tracker.conf文件,修改如下
1)
base_path=/home/yuqing/fastdfs -> base_path=/fastdfs_tracker

#可以自己指定目录位置,但目录必须存在,用于存储日志及storage server等信息,否则tracker server无法启动
1.2 将http.conf文件拷贝到/etc/fdfs目录下,执行
cp %FastDFS%/conf/http.conf /etc/fdfs/
 
注:为了支持http,必须将这个文件拷贝到此目录,否则无法启动,报param http.XXX not exist or is empty类似的错误
1.3 进入%FastDFS%目录,启动tracker服务器,执行
fdfs_trackerd %FastDFS%/conf/tracker.conf

1.4 /fastdfs_tracker/logs/trackerd.log 查看tracker的启动日志,如果看到类似
2013-12-29 04:26:56] INFO - FastDFS v4.06, base_path=/fastdfs_tracker, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=, max_connections=256, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=10.00%, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=64 KB, storage_ip_changed_auto_adjust=1, storage_sync_file_max_delay=86400s, storage_sync_file_max_time=300s, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, use_storage_id=0, id_type_in_filename=ip, storage_id_count=0, rotate_error_log=0, error_log_rotate_time=00:00, rotate_error_log_size=0, store_slave_file_use_link=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
恭喜你,tracker server已经启动成功!
2、配置及启动Storage Server
2.1 修改%FastDFS%/conf/storage.conf文件,修改如下:
base_path=/home/yuqing/fastdfs -> /fastdfs_storage
store_path0=/home/yuqing/fastdfs -> store_path0=/fastdfs_storage   
tracker_server=192.168.209.121:22122 -> tracker_server=192.168.56.101:22122

进入%FastDFS%目录,启动storage服务器,执行
fdfs_storaged %FastDFS%/conf/storage.conf

2.2 进入/fastdfs_tracker/logs/storage.log查看storage服务器启动日志,如果看到类似
[2013-12-29 04:27:06] INFO - FastDFS v4.06, base_path=/fastdfs_storage, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access_log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2013-12-29 04:27:06] INFO - file: storage_param_getter.c, line: 187, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, store_slave_file_use_link=0
恭喜你,storage server已经启动成功!
0
0
分享到:
评论

相关推荐

    FastDFS安装和配置过程

    #### 二、安装与配置流程 ##### 1. 安装libevent 首先,需要安装libevent库,这是FastDFS运行的依赖之一。具体步骤如下: - 进入`/opt/`目录 - 下载libevent稳定版本,例如`1.4.14b` - 解压并进入libevent目录 - ...

    fastdfs 安装及使用

    **FastDFS简介** FastDFS是一个开源的高性能、轻量级的分布式文件系统,它对文件进行管理,包括文件存储、...了解并熟练掌握FastDFS的安装、配置、使用以及与Java的集成,对于提升系统的稳定性和扩展性具有重要意义。

    Redhat下Fastdfs安装配置及nginx模块安装配置文档.pdf

    在本文档中,我们详细讨论了如何在Redhat操作系统上安装和配置FastDFS以及其Nginx模块。FastDFS是一个开源的高性能、轻量级的分布式文件系统,主要用于解决大容量存储和负载均衡的问题。以下是安装和配置FastDFS及其...

    Nginx+FastDFS整合安装与配置详细图文教程.pdf

    根据提供的文档内容,这篇“Nginx+FastDFS整合安装与配置详细图文教程”主要包含两个关键部分:Nginx的安装和配置、FastDFS的安装和配置。接下来我将详细介绍这两个部分的知识点。 ### Nginx安装和配置 Nginx是一...

    FastDFS Ngnix安装及配置

    在FastDFS与Nginx结合使用的情况下,需要安装Nginx并对其进行相应的配置: 1. 安装Nginx。 2. 编辑Nginx配置文件,通常在配置文件中使用FastDFS的Nginx模块。 3. 通过配置指令,如location等,指定FastDFS文件的URL...

    fastdfs安装配置.docx

    ### FastDFS 安装与配置知识点详解 #### 一、FastDFS 概述 FastDFS 是一款开源的高性能分布式文件系统,主要用于解决大规模文件存储的需求,尤其适用于中小文件(建议大小在4KB到500MB之间)的在线服务场景。它通过...

    FastDFS集群安装及配置规范

    本文将深入讲解如何在CentOS操作系统上安装和配置FastDFS集群,包括tracker服务器和storage服务器的设置。 首先,我们要了解FastDFS的基本架构。FastDFS是一个高性能、基于文件系统的分布式文件系统,主要由两个...

    fastdfs安装程序集合:fastdfs安装需要的所有程序

    2. 安装FastDFS:解压FastDFS安装包,配置编译参数(通常包括libfastcommon的安装路径),然后进行编译和安装。 3. 安装Nginx:如果尚未安装Nginx,需要先安装。Nginx可以从官方网站下载源码包,然后按照官方文档的...

    FastDFS 安装及使用说明

    ### FastDFS 安装及使用说明 #### 一、FastDFS 概述 FastDFS 是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了大容量存储和负载...

    FastDFS安装使用 我就是这么做的

    总之,FastDFS的安装和使用涉及多个步骤,包括安装依赖库、配置文件、启动服务,以及进行基本的功能测试。确保每个步骤正确执行,才能构建起一个稳定可靠的分布式文件系统。在实际应用中,还要考虑高可用性、负载...

    FastDFS需要的配置需要软件和配置说明

    在安装过程中,需要配置FastDFS的安装路径、数据存储路径等信息。 3. **配置FastDFS**:修改`/etc/fdfs`目录下的`tracker.conf`和`storage.conf`文件。`tracker.conf`是追踪服务器的配置,包含服务器的IP、端口等...

    使用docker安装fastdfs

    使用 Docker 安装 FastDFS FastDFS 是一个开源的分布式文件系统,使用 Docker 安装 FastDFS 可以简化安装过程同时提高系统的可扩展性和可靠性。本文将指导您如何使用 Docker 安装 FastDFS。 知识点一:安装 ...

    FastDFS安装教程.docx

    FastDFS是一款开源的高性能、轻量级...通过以上步骤,你可以在Linux环境中成功安装并配置FastDFS,结合Nginx实现高效稳定的文件存储和访问服务。在实际应用中,可能还需要考虑高可用性、负载均衡和安全性等方面的优化。

    FastDFS和Linux下安装使用FastDFS 安装Nginx 分布式文件系统.docx

    安装Nginx后,需要配置Nginx的FastDFS模块,如mod_fastdfs。配置完成后,Nginx将作为Web服务器接收HTTP请求,转发到FastDFS进行文件操作。这使得客户端可以通过标准的HTTP协议访问分布式文件系统中的文件,极大地...

    FastDFS所有安装配置文件

    在这个压缩包文件中,包含了FastDFS安装和配置所需的全部文件,包括客户端配置、存储节点配置、追踪节点配置、Nginx集成配置等。 1. **client.conf**:这是FastDFS客户端的配置文件,主要用于设置客户端连接到...

    fastdfs安装配置

    接下来,安装FastDFS的二进制包FastDFS_v2.04.tar.gz: 1. 下载源码包:`wget http://fastdfs.googlecode.com/files/FastDFS_v1.21.tar.gz` 2. 解压:`tar zxvf FastDFS_v2.04.tar.gz` 3. 进入FastDFS目录:`cd ...

    FastDFS+Nginx安装及配置

    FastDFS+Nginx 安装及配置。FastDFS 是一个开源的轻量级分布式文件系统,纯 C 实现,支持 Linux、FreeBSD 等 UNIX 系统,FastDFS 可以看做是基于文件的 key value pair 存储系统,包含两个角色,分别为跟踪 服务器...

    fastdfs 安装配置所需的安装包

    fastdfs 安装配置所需的安装包 FastDFS_v5.02.tar.gz fastdfs-nginx-module_v1.15.tar.gz nginx-1.4.7.tar.gz ngx_cache_purge-2.1.tar.gz pcre-8.34.tar.gz zlib-1.2.8.tar.gz 安装方法:...

    FastDFS安装配置手册

    《FastDFS安装配置手册》 FastDFS是一款开源的高性能、轻量级的分布式文件系统,主要解决大容量存储和负载均衡的问题,尤其适合图片、视频等大量文件存储。FastDFS为互联网应用提供了一个高效的文件存储解决方案,...

    FastDFS安装手册

    本手册详细介绍了在Linux环境下如何安装FastDFS的关键组件,包括libevent库的安装、FastDFS本身的安装及其配置过程。特别强调了TrackerServer和StorageServer的安装与配置步骤。 #### 二、libevent安装详解 1. **...

Global site tag (gtag.js) - Google Analytics