FastDFS发布版
当前版本 V6.06
什么是FastDFS?
fastDFS 是以C语言开发的一项开源轻量级分布式文件系统,他对文件进行管理,主要功能有:文件存储,文件同步,文件访问(文件上传/下载),特别适合以文件为载体的在线服务,如图片网站,视频网站等
参考《CentOS7安装FastDFS》
一、下载
wget https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz
tar -zxvf V1.0.43.tar.gz
cd libfastcommon-1.0.43
./make.sh
./make.sh install
wget https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz
tar -zxvf V6.06.tar.gz
cd fastdfs-6.06
./make.sh
./make.sh install
二、配置Tracker服务
cd /etc/fdfs
cp tracker.conf.sample tracker.conf
vim tracker.conf
要修改的内容为
base_path=/usr/local/fastdfs/tracker
port=22122
http.server_port=80
启动服务
#启动
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
#查看启动端口
ss -ant | grep 22122
#查看启动日志
cat /usr/local/fastdfs/tracker/logs/
三、配置Storage服务
cd /etc/fdfs
cp storage.conf.sample storage.conf
vim storage.conf
要修改的内容为
base_path=/usr/local/fastdfs/storage
port=23000
group_name=group1
store_path_count=1
store_path0=/usr/local/fastdfs/storage/file
tracker_server=server1:22122
启动服务
#启动
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
#查看启动端口
ss -ant | grep 23000
#查看启动日志
cat /usr/local/fastdfs/storage/logs/storaged.log
通过monitor查看storage是否绑定成功
/usr/bin/fdfs_monitor /etc/fdfs/storage.conf
本文详细介绍如何在CentOS7上部署FastDFS分布式文件系统,包括下载、编译、配置Tracker和Storage服务的过程,以及启动服务和检查状态的方法。
5894





