创建三台虚拟机,IP地址为:192.168.169.101,192.168.169.102,192.168.169.103 将192.168.169.102为namenode,192.168.169.101,192.168.169.103为datanode 关闭防火墙,安装JDK1.8,设置SSH无 ...
分类:
其他好文 时间:
2017-11-07 00:17:30
阅读次数:
240
参考https://chegva.com/794.html包[root@node1prod]#catcluster/fastdfs.sls
include:
-modules.fastdfs.install
fastdfs-service:
file.managed:
-name:/etc/fdfs/storage.conf
-source:salt://cluster/files/storage.conf
-mode:644
-user:root
-group:root
-template:jinja..
分类:
其他好文 时间:
2017-08-22 00:23:51
阅读次数:
162
该测试基于两台服务器,集群搭建只需按一中的步骤分别在两台服务器上搭建即可;测试一:单个tracker对应两个storager(storager组名相同)1:修改两个storager的storager.conf文件中的tracker_server为tracker的地址,group相同2:设定对单个tracker上传图片,结果为两台服务器..
分类:
其他好文 时间:
2017-08-12 10:32:01
阅读次数:
144
一:fastdfs安装
1.需要装备的包
fastdfs5.10
libevent-2.0.18-stable.tar
libfastcommon-master
2.先安装libfastcommon-master
unziplibfastcommon-master.zip
cdlibfastcommon-master
./make.sh
./make.shinstall
libfastcommon默认安装到了/usr/lib64/libfastcommon.so/usr/l..
分类:
其他好文 时间:
2017-08-10 23:38:27
阅读次数:
182
fdfs是一个分布式文件存储系统安装:先下载fastdfs依赖的库gitclone
tarxzflibfastcommon_v1.x.tar.gz
cdlibfastcommon
./make.sh
./make.shinstall安装完成后安装fastdfsgitclone
tarxzfFastDFS_v5.x.tar.gz
cdFastDFS
./make.sh
./make.shinstall此处介绍下自制rpm包下载好俩..
分类:
其他好文 时间:
2017-07-26 22:06:13
阅读次数:
140
由于fdfs是应用的fdfs协议,当用web访问时,需要提供http协议的接口,所以要在storage节点上编译安装nginxgitclonehttps://github.com/happyfish100/fastdfs-nginx-module.git
tarxfnginx-1.8.0.tar.gz
cdnginx-1.8.0
yuminstall-ypcre
yuminstall-ypcre-devel
./configure--pr..
分类:
其他好文 时间:
2017-07-26 21:49:13
阅读次数:
163
事件,当我们浏览完图片选中一张时,触发onchange事件将图片上传到服务器并回显、 Springmvc配置上传图片 FastDFS的Java接口使用 全局配置文件 fdfs_client.conf 工具类:FastDFSUtils 保存图片到FastDFS分布式文件系统 controller: ...
分类:
Web程序 时间:
2017-05-27 18:03:47
阅读次数:
635
上传附件: 执行结果为: 返回个数组,string[0]位group号,string[1]位路径 上传时一定要把fdfs服务器的22122端口和storage的端口23000打开,否则会报socket连不上 新建个上传工具类FastDFSClient如下: 输出: FastDfsClient类: 文 ...
分类:
其他好文 时间:
2017-05-26 16:02:14
阅读次数:
206
[root@fedora15 user]#/usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf 重启[root@fedora15 user]#/usr/local/bin/restart.sh/usr/local/bin/fdfs_storaged ...
分类:
其他好文 时间:
2017-05-02 20:55:40
阅读次数:
198
Properties properties = new Properties(); FileInputStream fio = new FileInputStream("C:/Users/asus/Desktop/OOO/src/fdfs_client.conf"); properties.load ...
分类:
其他好文 时间:
2017-03-31 12:11:28
阅读次数:
178