CentOS6.3下安装FastDFS

一、参考文档
FastDFS的介绍、架构、原理:
http://www.docin.com/p-454099549.html

安装过程参考:
http://www.cnblogs.com/ylh1223/archive/2012/02/08/2342224.html

配置文件修改参考:
http://my.oschina.net/guol/blog/72845
http://bbs.chinaunix.net/thread-1941456-1-1.html

以上3篇文档足矣安装好FastDFS


二、注意:
1. 需要先安装 gcc libevent
2. 设置存放目录不能在/root 下

三、一些脚本
启动tracker
/usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
重启tracker
/usr/local/bin/restart.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
停止tracker
/usr/local/bin/stop.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf

-----
启动storage
/usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
重启storage
/usr/local/bin/restart.sh /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
停止storage
/usr/local/bin/stop.sh /usr/local/bin/fdfs_storaged  /etc/fdfs/storage.conf


测试上传:
/usr/local/src/FastDFS/client/fdfs_upload_file  /etc/fdfs/client.conf  /root/me.jpg

你可能感兴趣的:(fastDFS)