logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Redis 理解

1.什么是redis.一个开源的内存中的数据结构存储系统.,可用做:数据库,缓存和消息中间件.2.常见的数据结构类型有哪些.string 字符串     list 列表      set 集合      hash 散列     zset 有序集合3.如何进行持久化1>每隔一段时间将数据集导入到磁盘(快照方式)2>追加到命令日志中(aof 只追加到文件.) ...

日志实时匹配替换

1.替换#!/bin/python#encoding:utf8import time,re,os,sysfilename = sys.argv[1]newfilename = filename+'new'file = open(filename)with open(newfilename,'w') as f:    while True:        where ...

python 日志分析 -redis

#!/bin/python#encoding:utf8import time,re,osfile = open('/data/apps/logs/p4-controller/controller.log.%s' % (time.strftime("%Y-%m-%d", time.localtime())))def Analysis():    sum = 0    times.

暂无文章信息