1所需软件
- libfastcommon
- fastdfs
libevent:以前4.x版本需要,现在已经不需要了
安装环境
- VMware® Workstation 12 Pro
- ubuntu-16.04.1-desktop-amd64
网站相关
- https://github.com/happyfish100/fastdfs
- https://github.com/happyfish100
- https://sourceforge.net/projects/fastdfs/
2安装
- 准备工作
>>cd /home/user1
>>mkdir work
>>cd work
>>sudo apt-get update 更新ubuntu的资源库
- 安装git和libfastcommon
>>sudo apt-get install git
>>git clone https://github.com/happyfish100/libfastcommon.git
>>./make.sh
>>./make.sh install
>>ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
- 安装FastDFS 从sourceforge下载到FastDFS_v5.05.tar.gz复制到work文件夹。
>> ./make.sh >> ./make.sh install
3配置和启动
编译安装fastdfs后,在FastDFS下有三个文件夹
(注意:需要在user1@ubuntu:/home/yuqing/fastdfs。在home下建立yuqing文件夹,再内部再建立fastdfs文件夹。这两个路径在tracker.conf和storage.conf中会被用到)
- tracker
- storage
- client
- 测试也是进入client。配置文件是conf下的client.conf。需要配置ip。 ./fdfs_upload_file ../conf/client.conf /home/user1/work/FastDFS_v5.05.tar.gz