安装指导_FastDFS

这篇博客详细介绍了在CentOS 5.9 64位环境下安装FastDFS 4.08的步骤,包括环境需求、下载FastDFS源码、安装过程以及遇到的make错误提示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境信息

  • centos_5.9_64
  • fastdfs 4.08
  • libevent > 1.4.13

安装部署

1)vi make.sh //调整安装目录
TARGET_PREFIX=/home/yuyj/fdfs
TARGET_CONF_PATH=/home/yuyj/fdfs/conf
2)make.sh && make.sh install //安装
3)cd /home/yuyj/fdfs
4)mkdir trakcer storage client temp
  • 配置:

tracker.conf

bind_addr=192.168.168.150
base_path=/home/yuyj/fdfs/trakcer
store_lookup=2
use_storage_id = true
storage_ids_filename = storage_ids.conf

storage.conf

group_name=img1
bind_addr=192.168.168.150
base_path=/home/yuyj/fdfs/storage/
store_path0=/home/yuyj/mnt/gv0
tracker_server=192.168.168.150:22122

storage_ids.conf

100001   img1  192.168.168.150

client.conf

base_path=/home/yuyj/fdfs/client/
tracker_server=192.168.168.150:22122
load_fdfs_parameters_from_tracker=true
use_storage_id = true
storage_ids_filename = storage_ids.conf

问题

1)make时,打印:error: event.h: No such file or directory

  缺少libevent导致:
  wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
  tar zxvf libevent-1.4.14b-stable.tar.gz
  ./configure
  make && make install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值