docker下搭建fastFDS单机版(附storage端口号不显示解决方案)

本文参考:点击打开链接

并进行一些改正,附解决方案。

1 下载FastDFS的依赖包

https://download.csdn.net/download/weixin_40247263/10525946

2 解压后上传到Linux上
yum -y install tar 下载解压工具
3 解压libfastcommon-1.0.7.tar.gz 并编译
# tar -zxvf libfastcommon-1.0.7.tar.gz
# cd libfastcommon-1.0.7
# ./make.sh
(若此处报错,可能是没有安装gcc 无法编译 )
# yum -y install gcc
# yum -y install perl
然后再运行 yum -y install perl则成功
# ./make.sh install
libfastcommon.so默认安装到了/usr/lib64/libfastcommon.so,而FastDFS主程序设置的lib目录是/usr/local/lib,所以设置软连接
# ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
# ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
# ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
# ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so
4 解压FastDFSV5.05.tar.gz 并编译
# tar -zxvf FastDFSV5.05.tar.gz
# cd fastdfs-5.05
# ./make.sh 或许不用输入这行
# ./make.sh install
FastDFS的默认配置文件放在了/etc/fdfs中我们可以进入目录看一下
# cd /etc/fdfs
现在里面有三个配置文件,我们需要各copy一份把.sample后缀名去掉
# cp tracker.conf.sample tracker.conf
# cp storage.conf.sample storage.conf
# cp client.conf.sample client.conf
5 配置FastDFS中的 tracker
配置文件中需要配置一个basepath路径 我们可以先提前创建出该路径
# mkdir -p /data/fdfs
修改tracker.conf配置文件 主要修改basepath路径和http.server_port即可
# vi tracker.conf
base_path=/data/fdfs
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值