FastDFS安装、配置、部署(一)-安装和部署
来源:互联网 发布:欠淘宝贷款2年了没还上 编辑:程序博客网 时间:2024/05/29 10:12
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配置详解
- android 封装好的BottomTabBar
- hibernate 字段值比较
- VS2010中“工具>选项中的VC++目录编辑功能已被否决”解决方法
- start_kernel——page_address_init
- 呵呵,这个是我。。
- FastDFS安装、配置、部署(一)-安装和部署
- matlab插入排序
- django manage.py 的各种功能
- C语言中返回局部变量或临时变量的地址的错误
- Android 5.0中的FDE功能实现
- 2012年5月SAT香港真题解析
- 图事-matlab之神经网络分类
- glibc编译debug版本
- 《java基础》多态/动态绑定