FastDFS安装、配置、部署(一)-安装和部署
来源:互联网 发布:微信商城端口什么意思 编辑:程序博客网 时间:2024/06/06 06:50
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配置详解
- weblogic新建服务
- Ubuntu下解决 adb devices :???????????? no permissions 方法
- 线性表 有点错误 懒得改
- 绘制
- 计算机图形学和OpenGL(一)OpenGL初步
- FastDFS安装、配置、部署(一)-安装和部署
- Leetcode Anagrams
- FastDFS安装、配置、部署(二)-Tracker配置详解
- Android:ViewTreeObserver类
- 编程珠玑2.4
- ArrayList,CopyOnWriteArrayList正确遍历方法
- Java 编程命名规范
- springmvc 定时器
- linux 常用命令