logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

gitlab 安装及汉化

一.获取gitlab汉化包1.git安装yum install -y git      2.汉化包下载最新git clone https://gitlab.com/xhang/gitlab.git                       最新版本下载git clone https://gitlab.com/xhang/gitlab.git -b v10.0.2-zh    ...

#gitlab
es 安装前系统配置

一..充分利用内存资源, 单机不超过32G,es 一般设置为系统内存的50%.或者2/3.关闭swap1.sudo swapoff -a/etc/fstab 注释掉 swap2.减少内核交互的倾向/etc/sysctl.confvm.swappiness = 13. 设置config/elasticsearch.yml bootstrap.memory_lock: true验证:GET _no..

日志实时匹配替换

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.

到底了