FastDFS发布版 当前版本 V6.06
什么是FastDFS?
fastDFS 是以C语言开发的一项开源轻量级分布式文件系统,他对文件进行管理,主要功能有:文件存储,文件同步,文件访问(文件上传/下载),特别适合以文件为载体的在线服务,如图片网站,视频网站等
参考《CentOS7安装FastDFS》
wget https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz
tar -zxvf V1.0.43.tar.gz cd libfastcommon-1.0.43 ./make.sh ./make.sh installwget https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz
tar -zxvf V6.06.tar.gz cd fastdfs-6.06 ./make.sh ./make.sh install要修改的内容为
base_path=/usr/local/fastdfs/tracker port=22122 http.server_port=80启动服务
#启动 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start #查看启动端口 ss -ant | grep 22122 #查看启动日志 cat /usr/local/fastdfs/tracker/logs/要修改的内容为
base_path=/usr/local/fastdfs/storage port=23000 group_name=group1 store_path_count=1 store_path0=/usr/local/fastdfs/storage/file tracker_server=server1:22122启动服务
#启动 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start #查看启动端口 ss -ant | grep 23000 #查看启动日志 cat /usr/local/fastdfs/storage/logs/storaged.log通过monitor查看storage是否绑定成功
/usr/bin/fdfs_monitor /etc/fdfs/storage.conf