参考文献
https://github.com/happyfish100/
https://github.com/happyfish100/fastdfs/wiki
https://www.cnblogs.com/leechenxiang/p/5406548.html
https://www.cnblogs.com/leechenxiang/p/7089778.html
环境准备
- Centos7.x 两台,分别安装tracker与storage
下载安装包:
安装基础环境 ```shell yum install -y gcc gcc-c++ yum -y install libevent
- 安装libfatscommon函数库
```shell
# 解压
tar -zxvf libfastcommon-1.0.42.tar.gz
- 进入libfastcommon文件夹,编译并且安装 ```shell ./make.sh ./make.sh install
安装的目录从控制台看一下:
- 安装fastdfs主程序文件
```shell
# 解压
tar -zxvf fastdfs-6.04.tar.gz
- 进入到fastdfs目录,查看fastdfs安装配置 ```shell cd fastdfs-6.04/ vim make.sh
```shell
TARGET_PREFIX=$DESTDIR/usr
TARGET_CONF_PATH=$DESTDIR/etc/fdfs
TARGET_INIT_PATH=$DESTDIR/etc/init.d
安装fastdfs
./make.sh
./make.sh install
如上图,
- /usr/bin 中包含了可执行文件;
- /etc/fdfs 包含了配置文件;
- 拷贝配置文件如下: ```shell cp /home/software/FastDFS/fastdfs-6.04/conf/* /etc/fdfs/
```