一、基本软件环境
- centos 7.6
- gcc gcc-c++ libevent zlib zlib-devel openssl openssl-devel pcre pcre-devel
- libfastcommon-1.0.43.tar,fastdfs-6.06.tar,fastdfs-nginx-module-1.22.tar
- nginx-1.18.0.tar
二、FastDFS安装
2.1 安装基础环境
yum -y install gcc gcc-c++ libevent zlib zlib-devel openssl openssl-devel pcre pcre-devel
2.2 上传安装包
2.3 创建基础目录
mkdir -p /data/imas/base_soft/fdfs/storage
mkdir -p /data/imas/base_soft/fdfs/tracker
mkdir -p /data/imas/base_soft/fdfs/data
mkdir -p /data/imas/base_soft/fdfs/client
2.4 安装libfastcommon (在安装fastdfs前操作)
tar -zxvf libfastcommon-1.0.43.tar.gz -C /data/imas/base_soft/fdfs/
cd /data/imas/base_soft/fdfs/libfastcommon-1.0.43
./make.sh
./make.sh ins