fox111 发表于 2017-6-3 08:47:58

FastDFS分布式存储

# git clone https://github.com/happyfish100/libfastcommon.git  # cd libfastcommon/
  # less libfastcommon.spec
  # mv libfastcommon libfastcommon-1.0.36
  # git clone https://github.com/happyfish100/fastdfs.git
  # cd fastdfs/
  # less fastdfs.spec
  # mv fastdfs fastdfs-5.0.10
  # tar cvzf fastdfs-5.0.10.tar.gz fastdfs-5.0.10/*
  # mkdir -pv rpmbuild/{SOURCES,SPECS}
  # cp libfastcommon-1.0.36.tar.gz rpmbuild/SOURCES/
  # cp libfastcommon-1.0.36/libfastcommon.spec rpmbuild/SPECS/
  # rpmbuild -ba rpmbuild/SPECS/libfastcommon.spec
  Wrote: /root/rpmbuild/SRPMS/libfastcommon-1.0.36-1.el7.centos.src.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/libfastcommon-1.0.36-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/libfastcommon-devel-1.0.36-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/libfastcommon-debuginfo-1.0.36-1.el7.centos.x86_64.rpm
  # cd rpmbuild/RPMS/x86_64
  # yum install -y libfastcommon-1.0.36-1.el7.centos.x86_64.rpm libfastcommon-devel-1.0.36-1.el7.centos.x86_64.rpm
  # cp fastdfs-5.0.10.tar.gz rpmbuild/SOURCES/
  # cp fastdfs-5.0.10/fastdfs.spec rpmbuild/SPECS/
  # rpmbuild -ba rpmbuild/SPECS/fastdfs.spec
  Wrote: /root/rpmbuild/SRPMS/fastdfs-5.0.10-1.el7.centos.src.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/fastdfs-5.0.10-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/fastdfs-server-5.0.10-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/fastdfs-tool-5.0.10-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/libfdfsclient-5.0.10-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/libfdfsclient-devel-5.0.10-1.el7.centos.x86_64.rpm
  Wrote: /root/rpmbuild/RPMS/x86_64/fastdfs-debuginfo-5.0.10-1.el7.centos.x86_64.rpm
  # cd rpmbuild/RPMS/x86_64/
  # yum install -y fastdfs-5.0.10-1.el7.centos.x86_64.rpm fastdfs-server-5.0.10-1.el7.centos.x86_64.rpm fastdfs-tool-5.0.10-1.el7.centos.x86_64.rpm libfdfsclient-5.0.10-1.el7.centos.x86_64.rpm libfdfsclient-devel-5.0.10-1.el7.centos.x86_64.rpm
页: [1]
查看完整版本: FastDFS分布式存储