FASTDFS安装步骤 发表于 2019-03-04 | 更新于 2019-03-31 | 分类于 linux FASTDFS安装步骤 FASTDFS安装步骤123456789101112131415161718192021222324252627282930313233343536373839400.init[root@fileserver ~]# yum install gcc[root@fileserver ~]# yum install unzip1.libfastcommon[root@fileserver ~]# unzip libfastcommon-1.0.36.zip[root@fileserver ~]# cd libfastcommon-1.0.36[root@localhost libfastcommon-1.0.36]# ./make.sh[root@localhost libfastcommon-1.0.36]# ./make.sh install2.FastDFS[root@fileserver ~]# yum install perl[root@fileserver ~]# unzip fastdfs-5.11.zip[root@fileserver ~]# cd fastdfs-5.11[root@fileserver fastdfs-5.11]# ./make.sh[root@fileserver fastdfs-5.11]# ./make.sh install3.3配置Tracker和Storage[root@fileserver ~]# cd /etc/fdfs[root@fileserver fdfs]# cp tracker.conf.sample tracker.conf[root@fileserver fdfs]# mkdir /home/filedata[root@fileserver fdfs]# mkdir /home/filedata/tracker[root@fileserver fdfs]# vi tracker.confbind_addr=10.24.70.83max_connections=500base_path=/home/filedata/tracker[root@fileserver fdfs]# cp storage.conf.sample storage.conf[root@fileserver fdfs]# mkdir /home/filedata/storage[root@fileserver fdfs]# mkdir /home/filedata/storage/info[root@fileserver fdfs]# mkdir /home/filedata/storage/data[root@fileserver fdfs]# vi storage.confbind_addr=10.24.70.83base_path=/home/filedata/storage/infostore_path0=/home/filedata/storage/datamax_connections=500tracker_server=10.24.70.83:22122[root@fileserver etc]# chkconfig --add fdfs_trackerd[root@fileserver etc]# chkconfig fdfs_trackerd on[root@fileserver etc]# chkconfig fdfs_storaged on[root@fileserver etc]# service fdfs_trackerd start[root@fileserver etc]# service fdfs_storaged start 上传测试12345678#cd /etc/fdfs#cp client.conf.sample client.conf#vim client.conf# Client 的数据和日志目录base_path=/home/client# Tracker端口tracker_server=10.24.70.83:22122#/usr/bin/fdfs_upload_file /etc/fdfs/client.conf namei.jpeg