https://github.com/happyfish100/fastdfs/wiki 官方wiki
Home · happyfish100/fastdfs Wiki · GitHub
首先在github下载所有需要的软件包。
libserverframe-1.1.23
libfastcommon-1.0.64.tar.gz
fastdfs-6.9.1.tar.gz
fastdfs-nginx-module-1.23.tar.gz
Centos7更换yum国内源
1.首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载国内yum源配置文件到/etc/yum.repos.d/
阿里源(推荐):
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
网易源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
3.清理yum缓存,并生成新的缓存
yum clean all
yum makecache
4.更新yum源检查是否生效
yum update
安装依赖
yum install -y git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget vim
安装:
1.解压缩之前下载的压缩包
libserverframe-1.1.23
libfastcommon-1.0.64.tar.gz
fastdfs-6.9.1.tar.gz 到对应的文件夹
libfastcommon,libserverframe目录下 执行 ./make.sh 后,执行./make.sh install
然后到fastdfs文, 执行 ./make.sh 后,执行./make.sh install