fastFDFS安装





fastfs 安装:


1.安装gcc
#yum install make cmake gcc gcc-c++
2.下载使用包
在http://code.google.com/p/fastdfs/downloads/list下载所需文件,此外还需先安装好libevent。
FastDFS内部使用libevent作为http服务器,如果使用apache或者nginx作为http服务器,该步骤可以不需要。
如果系统已经安装libevent,需要先卸载,命令如下:
yum –y remove libevent
  安装libevent,命令如下
  #tar -xvf libevent-2.0.20-stable.tar.gz
  #cd libevent
  #./configure –prefix=/usr
  #make
  #make install
下载fastdfs软件包:
#wget https://sourceforge.net/projects/fastdfs/files/FastDFS%20Server%20Source%20Code/FastDFS%20Server%20with%20PHP%20Extension%20Source%20Code%20V5.08/FastDFS_v5.08.tar.gz
下载libfastcommon软件包:
# wget -O listfastcommon-master.zip https://github.com/happyfish100/libfastcommon/archive/master.zip
3.安装libfastcommon
# unzip libfastcommon-master.zip  -d /usr/local/fast
# cd /usr/local/fast/libfastcommon-master/
# ./make.sh
# ./make.sh install
注意安装的路径:libfastcommon默认安装到了/usr/lib64/这个
4.进行软链接创建
FastDFS主程序设置的目录为/usr/local/lib/,而我们的安装目录为/usr/lib64,所以我们需要创建/
usr/lib64/下的一些核心执行程序的软连接文件。


创建目录(如果不存在)
#mkdir /usr/local/lib/


创建软链接
#ln -s /usr/lib64/libfastcom
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值