FastDFS安装、配置、部署(一)-安装和部署
来源:互联网 发布:工作一年跳槽知乎 编辑:程序博客网 时间:2024/06/10 02:21
1. 在http://code.google.com/p/fastdfs/downloads/list下载所需文件,此外还需先安装好libevent。
2. tar xzf FastDFS_v2.11.tar.gz
3. cd FastDFS
如果支持HTTP, vi make.sh,使用/WITH_HTTPD查找到这一行,输入i进入编辑模式,删除掉前面的注释#,:wq保存退出,如果需要安装成服务,则把下面一行也解开。
./make.sh
./make.sh install
4. 准备几个空闲的端口,可以使用netstat -an | grep 端口号是否被占用。
5. 根据实际情况修改/etc/fdfs下的配置文件,每个上面都有注释说明,如果需要HTTP,别忘了解开最下面的#include http.conf,要带一个#
6. 启动tracker: /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
7. 启动storage: /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf,如果出现错误,可以到步骤5修改配置文件时设置的目录的log目录下查看具体错误原因。
8. 到此安装配置完毕
二、操作使用:在FastDFS安装目录bin下有以下可执行文件。
上传文件:/usr/local/bin/fdfs_upload_file <config_file> <local_filename>
下载文件:/usr/local/bin/fdfs_download_file <config_file> <file_id> [local_filename]
删除文件:/usr/local/bin/fdfs_delete_file <config_file> <file_id>
monitor: /usr/local/bin/fdfs_monitor /etc/fdfs/client.conf
关闭:
killall fdfs_trackerd
killall fdfs_storaged
或
/usr/local/bin/stop.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/bin/stop.sh /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
重启:
/usr/local/bin/restart.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/bin/restart.sh /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)-安装和部署
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(一)
- FastDFS安装、配置、部署(二)-Tracker配置详解
- FastDFS安装、配置、部署(三)-Storage配置详解
- FastDFS安装、配置、部署(二)-Tracker配置详解
- Jenkins入门系列之——01第一章 Jenkins是什么?
- 音频一--音效
- gradle 变量配置传递,类似于 maven的 property属性
- node-express-jade-mongodb
- j解析json
- FastDFS安装、配置、部署(一)-安装和部署
- nmap 参数
- gtk3.0学习笔记4-构建用户界面
- eCall
- Scala使用Mixins进行类组合
- Struts2第九篇【OGNL、valueStack详解】
- Visionect产品介绍
- android 时间获取以及时间格式化
- 数字和字符串之间的转换