下面将介绍下fastdfs在rhel上的部署过程
tracker服务器:192.168.123.110/24
storage服务器:192.168.123.20/24
一:编译安装
[root@db1 ~]# wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.14
-stable.tar.gz
[root@db1 ~]# tar -zxvpf libevent-2.0.14-stable.tar.gz
[root@db1 ~]# cd libevent-2.0.14-stable
[root@db1 libevent-2.0.14-stable]# ./configure --prefix=/usr/local/libevent-2.0.14 &&
make && make install
[root@db1 ~]# wget http://fastdfs.googlecode.com/files/FastDFS_v3.02.tar.gz
[root@db1 ~]# tar -zxvf FastDFS_v3.02.tar.gz
[root@db1 ~]# cd FastDFS
[root@db1 FastDFS]# grep -A 4 '/usr/local/FastDFS' make.sh
TARGET_PREFIX=/usr/local/FastDFS
TARGET_CONF_PATH=/etc/fdfs
WITH_HTTPD=1
WITH_LINUX_SERVICE=1
[root@db1 FastDFS]# ./make.sh C_INCLUDE_PATH=/usr/local/libevent-2.0.14/include
LIBRARY_PATH=/usr/local/libevent-2.0.14/lib
[root@db1 FastDFS]# ./make.sh install
[root@db1 FastDFS]# ls /etc/fdfs/
client.conf http.conf mime.types storage.conf tracker.conf
二:tracker配置文件
[root@db1 ~]# grep -v '^#' /etc/fdfs/tracker.conf |grep -v '^$'
disabled=false
bind_addr=192.168.123.110
port=22122
connect_timeout=30
network_timeout=60
base_path=/home/data/fastdfs
max_connections=256
work_threads=4
store_lookup=2
store_group=group2
store_server=0
store_path=0
download_server=0
reserved_storage_space = 4GB
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
sync_log_buff_interval = 10
check_active_interval = 120
thread_stack_size = 64KB
storage_ip_changed_auto_adjust = true
storage_sync_file_max_delay = 86400
storage_sync_file_max_time = 300
use_trunk_file = false
slot_min_size = 256
slot_max_size = 16MB
trunk_file_size = 64MB
http.disabled=false
http.server_port=8080
http.check_alive_interval=30
http.check_alive_type=tcp
http.check_alive_uri=/status.html
http.need_find_content_type=true
[root@db1 ~]# grep -v '^#' /etc/fdfs/http.conf |grep -v '^$'
http.default_content_type = application/octet-stream
http.mime_types_filename=/etc/fdfs/mime.types
http.anti_steal.check_token=false
http.anti_steal.token_ttl=900
http.anti_steal.secret_key=FastDFS1234567890
http.anti_steal.token_check_fail=/home/data/fastdfs/conf/anti-steal.jpg
三:启动tracker服务,需要注意tracker.conf文件最后一行为#include httpd.conf
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/FastDFS/bin/fdfs_trackerd: error while loading shared libraries: libevent-
2.0.so.5: cannot open shared object file: No such file or directory
[root@db1 ~]# echo '/usr/local/libevent-2.0.14/include/' >> /etc/ld.so.conf
[root@db1 ~]# echo '/usr/local/libevent-2.0.14/lib/' >> /etc/ld.so.conf
[root@db1 ~]# ldconfig
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[2012-07-04 17:52:25] ERROR - file: tracker_func.c, line: 160, "/home/data/fastdfs"
can't be accessed, error info: No such file or directory
[root@db1 ~]# mkdir -p /home/data/fastdfs
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[root@db1 ~]# echo $?
22
[root@db1 ~]# cat /home/data/fastdfs/logs/trackerd.log
[2012-07-04 17:52:50] ERROR - file: ../common/fdfs_http_shared.c, line: 128, param
"http.mime_types_filename" not exist or is empty
[root@db1 ~]# tail -1 /etc/fdfs/tracker.conf
#include http.conf
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[root@db1 ~]# echo $?
0
[root@db1 ~]# ps -ef |grep track
root 3535 1 0 15:47 ? 00:00:00 /usr/local/FastDFS/bin/fdfs_trackerd
/etc/fdfs/tracker.conf
[root@db1 ~]# netstat -ntpl |grep fdfs
tcp 0 0 192.168.123.110:22122 0.0.0.0:* LISTEN
3535/fdfs_trackerd
tcp 0 0 192.168.123.110:8080 0.0.0.0:* LISTEN
3535/fdfs_trackerd
四:storage配置文件
[root@db2 ~]# grep -v '^#' /etc/fdfs/storage.conf |grep -v '^$'
disabled=false
group_name=group1
bind_addr=192.168.123.20
client_bind=true
port=23000
connect_timeout=30
network_timeout=60
heart_beat_interval=30
stat_report_interval=60
base_path=/home/data/fastdfs
max_connections=256
buff_size = 256KB
work_threads=4
disk_rw_separated = true
disk_rw_direct = false
disk_reader_threads = 1
disk_writer_threads = 1
sync_wait_msec=50
sync_interval=0
sync_start_time=00:00
sync_end_time=23:59
write_mark_file_freq=500
store_path_count=1
store_path0=/home/data/fastdfs
subdir_count_per_path=256
tracker_server=192.168.123.110:22122
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
file_distribute_path_mode=0
file_distribute_rotate_count=100
fsync_after_written_bytes=0
sync_log_buff_interval=10
sync_binlog_buff_interval=10
sync_stat_file_interval=300
thread_stack_size=512KB
upload_priority=10
if_alias_prefix=
check_file_duplicate=0
key_namespace=FastDFS
keep_alive=0
http.disabled=false
httphttp.domain_name=
http.server_port=8888
http.trunk_size=256KB
http.need_find_content_type=true
[root@db2 ~]# grep -v '^#' /etc/fdfs/client.conf |grep -v '^$'
connect_timeout=30
network_timeout=60
base_path=/home/data/fastdfs
tracker_server=192.168.123.110:22122
log_level=info
http.tracker_server_port=8080
[root@db2 ~]# grep -v '^#' /etc/fdfs/http.conf |grep -v '^$'
http.default_content_type = application/octet-stream
http.mime_types_filename=mime.types
http.anti_steal.check_token=false
http.anti_steal.token_ttl=900
http.anti_steal.secret_key=FastDFS1234567890
http.anti_steal.token_check_fail=/home/data/fastdfs/conf/anti-steal.jpg
五:启动storage,需要注意storage.conf文件最后一行为#include httpd.conf
[root@db2 ~]# mkdir -p /home/data/fastdfs
[root@db2 ~]# echo '/usr/local/libevent-2.0.14/include/' >> /etc/ld.so.conf
[root@db2 ~]# echo '/usr/local/libevent-2.0.14/lib/' >> /etc/ld.so.conf
[root@db2 ~]# ldconfig
[root@db2 ~]# tail -2 /etc/fdfs/storage.conf
#use "#include" directive to include HTTP other settings
#include http.conf
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_storaged /etc/fdfs/storage.conf
mkdir data path: 00 ...
mkdir data path: 01 ...
mkdir data path: 02 ...
———输出省略————
data path: /home/data/fastdfs/data, mkdir sub dir done.
[root@db2 ~]# ps -ef |grep fdfs
root 14451 1 0 16:15 ? 00:00:00 /usr/local/FastFDS/bin/fdfs_storaged
/etc/fdfs/storage.conf
root 14468 8238 0 16:16 pts/1 00:00:00 grep fdfs
[root@db2 ~]# netstat -ntpl |grep fdfs
tcp 0 0 192.168.123.20:8888 0.0.0.0:* LISTEN
14451/fdfs_storaged
tcp 0 0 192.168.123.20:23000 0.0.0.0:* LISTEN
14451/fdfs_storaged
五:测试文件上传
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_test /etc/fdfs/client.conf upload /etc/passwd
This is FastDFS client test program v3.02
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2012-07-30 16:25:59] INFO - base_path=/home/data/fastdfs, connect_timeout=30,
network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0 tracker_query_storage_store_list_without_group:
server 1. group_name=group1, ip_addr=192.168.123.20, port=23000 group_name=group1, ip_addr=192.168.123.20, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:25:59
file size=1832
file crc32=295790097
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783_big
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:25:59
file size=1832
file crc32=295790097
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783_big
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_test /etc/fdfs/client.conf upload 2.jpg
This is FastDFS client test program v3.02
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2012-07-30 16:29:22] INFO - base_path=/home/data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0 tracker_query_storage_store_list_without_group:
server 1. group_name=group1, ip_addr=192.168.123.20, port=23000 group_name=group1, ip_addr=192.168.123.20, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472.jpg
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:29:22
file size=71850
file crc32=3833797383
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472_big.jpg
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:29:22
file size=71850
file crc32=3833797383
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472_big.jpg
tracker服务器:192.168.123.110/24
storage服务器:192.168.123.20/24
一:编译安装
[root@db1 ~]# wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.14
-stable.tar.gz
[root@db1 ~]# tar -zxvpf libevent-2.0.14-stable.tar.gz
[root@db1 ~]# cd libevent-2.0.14-stable
[root@db1 libevent-2.0.14-stable]# ./configure --prefix=/usr/local/libevent-2.0.14 &&
make && make install
[root@db1 ~]# wget http://fastdfs.googlecode.com/files/FastDFS_v3.02.tar.gz
[root@db1 ~]# tar -zxvf FastDFS_v3.02.tar.gz
[root@db1 ~]# cd FastDFS
[root@db1 FastDFS]# grep -A 4 '/usr/local/FastDFS' make.sh
TARGET_PREFIX=/usr/local/FastDFS
TARGET_CONF_PATH=/etc/fdfs
WITH_HTTPD=1
WITH_LINUX_SERVICE=1
[root@db1 FastDFS]# ./make.sh C_INCLUDE_PATH=/usr/local/libevent-2.0.14/include
LIBRARY_PATH=/usr/local/libevent-2.0.14/lib
[root@db1 FastDFS]# ./make.sh install
[root@db1 FastDFS]# ls /etc/fdfs/
client.conf http.conf mime.types storage.conf tracker.conf
二:tracker配置文件
[root@db1 ~]# grep -v '^#' /etc/fdfs/tracker.conf |grep -v '^$'
disabled=false
bind_addr=192.168.123.110
port=22122
connect_timeout=30
network_timeout=60
base_path=/home/data/fastdfs
max_connections=256
work_threads=4
store_lookup=2
store_group=group2
store_server=0
store_path=0
download_server=0
reserved_storage_space = 4GB
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
sync_log_buff_interval = 10
check_active_interval = 120
thread_stack_size = 64KB
storage_ip_changed_auto_adjust = true
storage_sync_file_max_delay = 86400
storage_sync_file_max_time = 300
use_trunk_file = false
slot_min_size = 256
slot_max_size = 16MB
trunk_file_size = 64MB
http.disabled=false
http.server_port=8080
http.check_alive_interval=30
http.check_alive_type=tcp
http.check_alive_uri=/status.html
http.need_find_content_type=true
[root@db1 ~]# grep -v '^#' /etc/fdfs/http.conf |grep -v '^$'
http.default_content_type = application/octet-stream
http.mime_types_filename=/etc/fdfs/mime.types
http.anti_steal.check_token=false
http.anti_steal.token_ttl=900
http.anti_steal.secret_key=FastDFS1234567890
http.anti_steal.token_check_fail=/home/data/fastdfs/conf/anti-steal.jpg
三:启动tracker服务,需要注意tracker.conf文件最后一行为#include httpd.conf
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/FastDFS/bin/fdfs_trackerd: error while loading shared libraries: libevent-
2.0.so.5: cannot open shared object file: No such file or directory
[root@db1 ~]# echo '/usr/local/libevent-2.0.14/include/' >> /etc/ld.so.conf
[root@db1 ~]# echo '/usr/local/libevent-2.0.14/lib/' >> /etc/ld.so.conf
[root@db1 ~]# ldconfig
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[2012-07-04 17:52:25] ERROR - file: tracker_func.c, line: 160, "/home/data/fastdfs"
can't be accessed, error info: No such file or directory
[root@db1 ~]# mkdir -p /home/data/fastdfs
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[root@db1 ~]# echo $?
22
[root@db1 ~]# cat /home/data/fastdfs/logs/trackerd.log
[2012-07-04 17:52:50] ERROR - file: ../common/fdfs_http_shared.c, line: 128, param
"http.mime_types_filename" not exist or is empty
[root@db1 ~]# tail -1 /etc/fdfs/tracker.conf
#include http.conf
[root@db1 ~]# /usr/local/FastDFS/bin/fdfs_trackerd /etc/fdfs/tracker.conf
[root@db1 ~]# echo $?
0
[root@db1 ~]# ps -ef |grep track
root 3535 1 0 15:47 ? 00:00:00 /usr/local/FastDFS/bin/fdfs_trackerd
/etc/fdfs/tracker.conf
[root@db1 ~]# netstat -ntpl |grep fdfs
tcp 0 0 192.168.123.110:22122 0.0.0.0:* LISTEN
3535/fdfs_trackerd
tcp 0 0 192.168.123.110:8080 0.0.0.0:* LISTEN
3535/fdfs_trackerd
四:storage配置文件
[root@db2 ~]# grep -v '^#' /etc/fdfs/storage.conf |grep -v '^$'
disabled=false
group_name=group1
bind_addr=192.168.123.20
client_bind=true
port=23000
connect_timeout=30
network_timeout=60
heart_beat_interval=30
stat_report_interval=60
base_path=/home/data/fastdfs
max_connections=256
buff_size = 256KB
work_threads=4
disk_rw_separated = true
disk_rw_direct = false
disk_reader_threads = 1
disk_writer_threads = 1
sync_wait_msec=50
sync_interval=0
sync_start_time=00:00
sync_end_time=23:59
write_mark_file_freq=500
store_path_count=1
store_path0=/home/data/fastdfs
subdir_count_per_path=256
tracker_server=192.168.123.110:22122
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
file_distribute_path_mode=0
file_distribute_rotate_count=100
fsync_after_written_bytes=0
sync_log_buff_interval=10
sync_binlog_buff_interval=10
sync_stat_file_interval=300
thread_stack_size=512KB
upload_priority=10
if_alias_prefix=
check_file_duplicate=0
key_namespace=FastDFS
keep_alive=0
http.disabled=false
httphttp.domain_name=
http.server_port=8888
http.trunk_size=256KB
http.need_find_content_type=true
[root@db2 ~]# grep -v '^#' /etc/fdfs/client.conf |grep -v '^$'
connect_timeout=30
network_timeout=60
base_path=/home/data/fastdfs
tracker_server=192.168.123.110:22122
log_level=info
http.tracker_server_port=8080
[root@db2 ~]# grep -v '^#' /etc/fdfs/http.conf |grep -v '^$'
http.default_content_type = application/octet-stream
http.mime_types_filename=mime.types
http.anti_steal.check_token=false
http.anti_steal.token_ttl=900
http.anti_steal.secret_key=FastDFS1234567890
http.anti_steal.token_check_fail=/home/data/fastdfs/conf/anti-steal.jpg
五:启动storage,需要注意storage.conf文件最后一行为#include httpd.conf
[root@db2 ~]# mkdir -p /home/data/fastdfs
[root@db2 ~]# echo '/usr/local/libevent-2.0.14/include/' >> /etc/ld.so.conf
[root@db2 ~]# echo '/usr/local/libevent-2.0.14/lib/' >> /etc/ld.so.conf
[root@db2 ~]# ldconfig
[root@db2 ~]# tail -2 /etc/fdfs/storage.conf
#use "#include" directive to include HTTP other settings
#include http.conf
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_storaged /etc/fdfs/storage.conf
mkdir data path: 00 ...
mkdir data path: 01 ...
mkdir data path: 02 ...
———输出省略————
data path: /home/data/fastdfs/data, mkdir sub dir done.
[root@db2 ~]# ps -ef |grep fdfs
root 14451 1 0 16:15 ? 00:00:00 /usr/local/FastFDS/bin/fdfs_storaged
/etc/fdfs/storage.conf
root 14468 8238 0 16:16 pts/1 00:00:00 grep fdfs
[root@db2 ~]# netstat -ntpl |grep fdfs
tcp 0 0 192.168.123.20:8888 0.0.0.0:* LISTEN
14451/fdfs_storaged
tcp 0 0 192.168.123.20:23000 0.0.0.0:* LISTEN
14451/fdfs_storaged
五:测试文件上传
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_test /etc/fdfs/client.conf upload /etc/passwd
This is FastDFS client test program v3.02
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2012-07-30 16:25:59] INFO - base_path=/home/data/fastdfs, connect_timeout=30,
network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0 tracker_query_storage_store_list_without_group:
server 1. group_name=group1, ip_addr=192.168.123.20, port=23000 group_name=group1, ip_addr=192.168.123.20, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:25:59
file size=1832
file crc32=295790097
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783_big
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:25:59
file size=1832
file crc32=295790097
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWRRfcMOGtAAAHKBGhZhE8065783_big
[root@db2 ~]# /usr/local/FastFDS/bin/fdfs_test /etc/fdfs/client.conf upload 2.jpg
This is FastDFS client test program v3.02
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2012-07-30 16:29:22] INFO - base_path=/home/data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0 tracker_query_storage_store_list_without_group:
server 1. group_name=group1, ip_addr=192.168.123.20, port=23000 group_name=group1, ip_addr=192.168.123.20, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472.jpg
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:29:22
file size=71850
file crc32=3833797383
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472_big.jpg
source ip address: 192.168.123.20
file timestamp=2012-07-30 16:29:22
file size=71850
file crc32=3833797383
file url: http://192.168.123.110:8080/group1/M00/00/00/wKh7FFAWReLzPs4sAAEYquSDGwc472_big.jpg
发表评论
-
ubuntu下SVN服务器安装配置
2014-01-03 19:46 682ubuntu下SVN服务器安装配 ... -
ActiveMQ for Linux 安装
2013-05-23 20:34 1024ActiveMQ在linux下安装非常简单,步骤如下: 1 ... -
Centos6.3 消息队列rabbitmq的安装及使用
2012-08-21 12:14 2202消息队列的使用能使一些操作异步化,从而能更快的响应用户,相关操 ... -
CentOS下fastDFS的完整安装和配置步骤
2012-08-21 11:46 1206centos6.2系统下安装配置FastDFS步骤: 1:安装 ... -
linux下用Apache一个IP多个网站多域名配置方法
2011-06-13 16:49 2235linux下用Apache一个IP多个网站多域名配置方法 如 ... -
Windows 远程连接 Ubuntu(XRDP )
2011-05-23 17:39 1ubuntu自带了一个远程桌 ... -
Ubuntu下修改目录权限
2011-05-22 12:53 1322Ubuntu下修改目录权限需要先用 sudo 来获得管理员权限 ... -
wind7 远程桌面连接Ubuntu10.10 操作过程
2011-04-16 11:21 1354Ubuntu下的操作 1、首先你要有Ubuntu10.10, ... -
EL表达式截取字符串
2011-01-08 01:40 881用fn函数: <%@ taglib ...
相关推荐
在本文中,我们将详细探讨如何在Ubuntu系统上部署配置FastDFS,这是一个开源的分布式文件系统。FastDFS设计用于解决大容量存储和负载均衡的问题,特别适合以文件为主的数据存储。以下是配置FastDFS的步骤: 1. **...
【FastDFS分布式文件系统部署方案】 FastDFS是一个开源的高性能分布式文件系统,它专注于解决海量数据存储的问题,尤其适用于中小文件(建议大小在4KB到500MB之间)的在线服务。FastDFS提供了文件存储、文件同步和...
在本文中,我们将详细介绍 CentOS 6.7 下安装 FastDFS 文件服务器和 Docker 容器集群的过程。 1. 安装 JDK 1.8 在安装 FastDFS 之前,我们需要首先安装 JDK 1.8。在 CentOS 6.7 中,默认安装了 OpenJDK 1.7.0,...
下面将详细介绍FastDFS的部署过程。 安装依赖项 在安装FastDFS之前,需要安装一些依赖项,包括vim、gcc、make、cmake等。使用以下命令安装依赖项: ``` yum install vim-enhanced yum install make cmake gcc gcc...
在本篇文章中,我们将详细介绍在RHEL 7.1 x64环境下安装FastDFS的详细步骤。 首先,确保你的系统已经更新到最新版本,并且安装了必要的依赖库,这些通常包括GCC编译器、OpenSSL库、Glibc-devel、zlib-devel等。你...
本章节详细介绍了如何在Linux CentOS 6.5环境下搭建FastDFS环境,包括Tracker和Storage的安装配置过程。 ##### 2.1 环境要求 - **操作系统**:Linux CentOS 6.5 - **用户**:root用户登录 - **服务组件**:安装1个...
在Linux主机上部署FastDFS涉及以下步骤: 1. **下载所需组件**: - fastdfs-5.05:这是FastDFS的稳定版本,避免了某些高版本的安装问题。 - libfastcommon-master:这是FastDFS的基础库,必须先安装。 - fastdfs...
本文档将详细介绍如何在生产环境中部署Fastdfs集群,包括设置跟踪节点(Tracker)和存储节点(Storage),以及相关的配置和优化。 一、Fastdfs集群部署 1. 跟踪节点部署 跟踪节点主要负责调度存储节点,管理文件元...
FastDFS集群的简介、部署与参数调优 FastDFS是基于开源的分布式文件系统,主要用于解决大型企业级应用程序中的文件存储问题。 FastDFS集群的主要特点是高可用性、高性能、可扩展性和高可靠性。 FastDFS集群的架构...
在Ubuntu系统上部署FastDFS和Nginx是一个常见的任务,特别是在构建高效、稳定且可扩展的文件存储和分发服务时。FastDFS是一款开源的、轻量级的分布式文件系统,设计用于支持大容量的文件存储,而Nginx则是一款高性能...
综上所述,"FastDFS+Nginx安装部署软件"组合提供了高效、可靠的文件存储和访问解决方案,是大型网站和互联网服务的理想选择。在实际操作中,开发者需要充分理解FastDFS和Nginx的工作原理,以便正确配置和优化系统,...
本文将围绕FastDFS的核心特点、工作原理、安装部署以及常见应用场景进行详细介绍。 一、FastDFS核心特点 1. 高性能:FastDFS采用客户端/服务器(C/S)架构,支持TCP/IP通信协议,能够高效地处理大量并发读写请求。...
在实际部署过程中,需要明确区分 Tracker Server 和 Storage Server 的角色,并合理规划它们的数量和分布位置。 ##### 3.3 安装步骤 - **步骤1**:创建必要的工作目录。 - **步骤2**:下载并安装 FastDFS 的依赖库 ...
本文将详细介绍如何在单机环境下部署FastDFS,并结合Springboot进行集成。 一、FastDFS单机环境部署 1. 安装libfastcommon libfastcommon是FastDFS和FastDHT的基础组件,提供了许多常用的C函数库。首先,通过`wget...
#!/bin/bash #关闭防火墙 systemctl stop firewalld.service setenforce 0 #安装编译环境 ...yum install -y git gcc gcc-...cd fastdfs-5.11/ #编译安装 ./make.sh && ./make.sh install cd #配置文件准备 mkd
在安装FastDFS之前,首先需要确保系统上已经安装了必要的依赖包,如gcc编译器、libevent库等。这些包通常可以通过Linux的包管理工具(如apt-get或yum)进行安装。 **二、安装libfdfsclient和FastDFS** 接下来,下载...
在本文中,我们将深入探讨FastDFS的分布式存储原理以及如何在Linux环境下进行高可用集群的部署。 FastDFS的核心组件包括跟踪服务器(Tracker Server)和存储服务器(Storage Server)。跟踪服务器负责调度文件上传...
FastDFS安装部署文档 FastDFS是基于开源的分布式文件系统,提供了高性能、高可靠性和高可扩展性的解决方案。本文档将指导您完成FastDFS的安装和部署。 服务器说明 在安装FastDFS之前,需要了解服务器的各个组件...
本文将详细介绍FastDFS的安装部署过程,以及在实际操作中可能遇到的问题和解决方案。 ### 1. 安装前准备 在部署FastDFS之前,确保你的服务器环境已经安装了以下基础组件: - Linux操作系统:FastDFS可以在多种...
1. **多台服务器部署**:在多台服务器上分别部署Tracker和Storage节点,形成高可用的集群,提高服务的稳定性和扩展性。 2. **负载均衡**:Nginx可以通过配置实现负载均衡,将请求分发到不同的Storage节点,平衡...