FastDFS-6.06安装(Centos 7)

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值