处理线程中打开文件,每次读取一行并记录当前读取位置,没有下一行让出一秒logfile = './logs/%s_%s.log' % (appName, time.strftime('%Y_%m_%d')) file = open(logfile, 'r', encoding='utf-8') whi ...
分类:
编程语言 时间:
2020-12-30 10:45:44
阅读次数:
0
code # -*- coding:utf-8 -*- from flask import Flask from flask import request import hashlib import time import re import xml.etree.ElementTree as ET ...
分类:
微信 时间:
2020-12-29 11:45:23
阅读次数:
0
背景 操作系统是 centos 6,RabbitMQ 3.8.1. 服务器突然无法连接,重启后查看/var/log/messages,报错日志如下: epmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memory epmd: ...
分类:
系统相关 时间:
2020-12-29 11:23:04
阅读次数:
0
flume的概述 Apache Flume是一个分布式,可靠且可用的系统,用于有效地从许多不同的source收集,聚合和移动大量日志数据到集中式数据存储。 Apache Flume的使用不仅限于日志数据聚合。由于数据source是可定制的,因此Flume可用于传输大量event 数据,包括但不限于网 ...
分类:
Web程序 时间:
2020-12-29 11:10:09
阅读次数:
0
improt.org.springframework.data.domain.sort包Criterialcritel=newCriterial();criterl.and("createTime").is(req.getCreateTime())Sortsort=Sort.by(sort.Diretion.DESC,mongod库对应属性)mongoTempalate.fin
分类:
数据库 时间:
2020-12-29 11:05:45
阅读次数:
0
1.创建mysql数据库,并添加数据: 创建数据库访问层,实体类,业务层,控制层: 数据库访问层: 代码: package com.xys.springnew.mapper; import com.xys.springnew.entity.User; import org.springframewo ...
分类:
编程语言 时间:
2020-12-28 11:33:34
阅读次数:
0
vi mysqldump_bak.sh #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH export LANG=en_US.UTF-8 time="$(da ...
分类:
数据库 时间:
2020-12-28 11:30:59
阅读次数:
0
更换清华镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.e ...
分类:
其他好文 时间:
2020-12-25 13:03:52
阅读次数:
0
2019年Node趋势解读:大前端如何与Node结合?图片作者|狼叔(阿里前端技术专家,Node技术布道者)编辑|覃云你好,我是阿里巴巴前端技术专家狼叔,在上一篇文章中,我分享了大前端的现状和未来,接下来的这篇文章,我将会分享一些大前端跟Node.js结合比较密切的点。本文首发于极客时间《技术领导力300讲》专栏:https://time.geekbang.org/column/intro/79?
分类:
其他好文 时间:
2020-12-24 12:17:15
阅读次数:
0
在实际项目中是否用过消息队列? 这里简单介绍一下Redis消息队列吧,之前有一个服务号消息推送就是用的Redis来做的,因为业务比较单一所以就拿Redis来做; 第一步:创建推送任务; 1.区分任务是即时任务还是延时任务; 2.如果是延时任务可以使用zset(key,time,val),因为zset ...
分类:
其他好文 时间:
2020-12-24 12:01:14
阅读次数:
0