摘要: # Author:Alex# Date:2017.0605# Version:3.6.0man = []other = []#打开note文件,循环内容,并判断,加入到man and other中import pickletry: data = open('note.txt') for each_l 阅读全文
posted @ 2017-06-05 15:10 Alex_Footprint 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 工作原理 1. FastDFS服务端有2个角色 分别是tracker(跟踪器(或说是调度器会更合适)) 和 storage(存储节点)。 2. tracker负责调度和负载均衡,并不需要存储文件的索引信息,因为文件上传后 stroage 返回给客户端的文件ID中就包含了组名、文件相对路径和文件名等( 阅读全文
posted @ 2017-06-05 11:34 Alex_Footprint 阅读(186) 评论(0) 推荐(0) 编辑
摘要: # Author:Alex# Date:2017.06.05# Version:3.6.0#!/usr/bin/python# del all filesimport osdir = '/opt/download_file'os.chdir(dir)file = os.listdir(dir)for 阅读全文
posted @ 2017-06-05 11:12 Alex_Footprint 阅读(285) 评论(0) 推荐(0) 编辑