一、fastdfs搭建
1、gcc 1、安装gcc:yum install make cmake gcc gcc-c++ 2、libfastcommon-master 1、在/opt/下新建fastdfs目录 2、下载libfastcommon-master.zip并解压至/opt/fastdfs/目录: https://codeload.github.com/happyfish100/libfastcommon/zip/master 3、cd /opt/fastdfs/libfastcommon-master/:进入目录 4、chmod 777 ./make.sh:修改权限 5、./make.sh:编译 6、./make.sh install:安装 3、fastdfs 1、下载fastdfs-6.06.tar.gz至/opt/fastdfs/目录: https://codeload.github.com/happyfish100/fastdfs/tar.gz/V6.06 2、cd /opt/fastdfs/:进入目录 3、tar -zxvf fastdfs-6.06.tar.gz:解压 4、cd fastdfs-6.06:进入目录 5、./make.sh:编译 6、./make.sh install:安装 4、tracker配置 cd /etc/fdfs/ cp tracker.conf.sample tracker.conf 配置tracker.conf:base_path = /fastdfs/tracker mkdir -p /fastdfs/tracker cd /etc/init.d/ ./fdfs_trackerd start 5、storage配置 cd /etc/fdfs/