基于docker - 单机版FastDFS搭建
###### 安装单机版 ######
# make docker container
docker run -it -P -v /home/insun/:/insun/:rw --name single-fastdfs-test -h single-fastdfs ubuntu:18.04 bash
# apt
apt-get install build-essential
apt-get install git wget
# 准备目录
mkdir /usr/local/src # 所有安装包
mkdir /home/dfs/ # 数据存储位置,这里为了方便把日志什么的都放到了dfs
# 获取源码
cd /usr/local/src
git clone https://github.com/happyfish100/libfastcommon.git --depth 1
git clone https://github.com/happyfish100/fastdfs.git --depth 1
git clone https://github.com/happyfish100/fastdfs-nginx-module.git --depth 1
# 安装libfatscommon
cd libfastcommon/
./make.sh clean && ./make.sh && ./make.sh install
# 安装FastDFS
cd ../fastdfs
./make.sh clean && ./make.sh && ./make.sh install
# setup the config files
./setup.sh /etc/fdfs
###### 修改配置文件 - 单机版配置文件 ######
# 单机服务器ip: 172.17.0.2
## tracker 配置
vim /etc/fdfs/tracker.conf
port=22122 # tracker服务器端口