安装包:
安装包下载地址:https://download.csdn.net/download/qq924795111/10462643
下载完成后,将压缩包上传到Linux/usr/local/src
目录下
1、安装所需的依赖包
shell> yum install make cmake gcc gcc-c++
shell> yum install wget
shell> yum install unzip
shell> wget http://www.cpan.org/src/5.0/perl-5.16.3.tar.gz
#需要安装perl
shell> tar -zxvf perl-5.16.3.tar.gz
shell> cd perl-5.16.3
shell> ./Configure -de
shell> make
shell> make install
2、安装libfatscommon
shell> cd /usr/local/src
shell> unzip libfastcommon-master.zip
shell> cd libfastcommon-master
shell> ll
-rw-r--r--. 1 root root 6670 10月 8 09:39 HISTORY
-rw-r--r--. 1 root root 566 10月 8 09:39 INSTALL
-rw-r--r--. 1 root root 1438 10月 8 09:39 libfastcommon.spec
-rwxr-xr-x. 1 root root 3099 10月 8 09:39 make.sh
drwxr-xr-x. 2 root root 4096 10月 8 09:39 php-fastcommon
-rw-r--r--. 1 root root 812 10月 8 09:39 README
drwxr-xr-x. 3 root root 4096 10月 8 09:39 src
## 编译、安装
shell> ./make.sh
shell> ./make.sh install
3、安装FastDFS
shell> cd /usr/local/src
shell> unzip fastdfs-5.10.zip
shell> cd fastdfs-5.10
shell> ll
[root@localhost fastdfs-master]# ll
drwxr-xr-x. 3 root root 4096 8月 8 15:17 client
drwxr-xr-x. 2 root root 4096 8月 8 15:17 common
drwxr-xr-x. 2 root root 4096 8月 8 15:17 conf
-rw-r--r--. 1 root root 35067 8月 8 15:17 COPYING-3_0.txt
-rw-r--r--. 1 root root 2881 8月 8 15:17 fastdfs.spec
-rw-r--r--. 1 root root 32259 8月 8 15:17 HISTORY
drwxr-xr-x. 2 root root 46 8月 8 15:17 init.d
-rw-r--r--. 1 root root 7755 8月 8 15:17 INSTALL
-rwxr-xr-x. 1 root root 5548 8月 8 15:17 make.sh
drwxr-xr-x. 2 root root 4096 8月 8 15:17 php_client
-rw-r--r--. 1 root root 2380 8月 8 15:17 README.md
-rwxr-xr-x. 1 root root 1768 8月 8 15:17 restart.sh
-rwxr-xr-x.