欢迎来到ArchitecTang的博客

摘要: 文件名自定义(文件格式为.py),脚本内容: !/usr/bin/env python coding:utf 8 import requests import random import time def get_json(url): headers = { 'User Agent': 'Mozil 阅读全文
posted @ 2018-12-29 10:17 ArchitecTang 阅读(2010) 评论(0) 推荐(0) 编辑
摘要: 在远程运行节点创建一个cleanlog.sh 脚本文件 vin clenalog.sh 插入以下内容 !/bin/env bash start=$(date +%y %m %d %H%M%m) File=/software/dubbo monitor data/cleanlog/clean_log_ 阅读全文
posted @ 2018-12-28 14:14 ArchitecTang 阅读(1913) 评论(0) 推荐(1) 编辑
摘要: ResponseError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set 阅读全文
posted @ 2018-12-28 13:54 ArchitecTang 阅读(248) 评论(0) 推荐(1) 编辑
摘要: 1、安装完成后允许命令出错 Traceback (most recent call last): File "/usr/bin/ansible", line 197, in (runner, results) = cli.run(options, args) File "/usr/bin/ansib 阅读全文
posted @ 2018-12-28 13:43 ArchitecTang 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: ansible介绍: Ansible是一款基于Python开发的自动化运维工具,主要是实现批量系统配置、批量程序部署、批量运行命令、批量执行任务等等诸多功能。Ansible是一款灵活的开源工具,能够很大程度简化运维中的配置管理与流程控制方式,它利用推送方式对客户系统加以配置,这样所有工作都可在主服务 阅读全文
posted @ 2018-12-28 13:40 ArchitecTang 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 实例一 (灰色调度) !/usr/bin/env python _ _ coding:utf 8 _ _ import cv2 as cv import numpy as np capture = cv.VideoCapture(0) 创建一个VideoCapture对象 while(True): 阅读全文
posted @ 2018-12-28 13:26 ArchitecTang 阅读(3165) 评论(0) 推荐(0) 编辑
摘要: 脚本内容: import matplotlib.pyplot as plt nginx_file = '10.6.11.91_access.log 2018 12 27' ip = {} 筛选nginx日志文件中的IP with open(nginx_file) as f: for i in f.r 阅读全文
posted @ 2018-12-28 12:24 ArchitecTang 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 脚本内容: !/bin/bash echo " (__)" echo " (oo)" echo " / \/ " echo " / | || " echo " /\ /\ " echo " ~~ ~~ " echo "Are You Ready?" read key echo "警告:本脚本只作为日 阅读全文
posted @ 2018-12-25 15:18 ArchitecTang 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 创建一个ftp.py文件(Linux环境),插入以下代码: from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers impor 阅读全文
posted @ 2018-12-25 15:10 ArchitecTang 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 2018/12/24 14:00:57 zabbix监控运行一段时间以后,会留下大量的历史监控数据,zabbix数据库一直在增大;可能会造成系统性能下降,查看历史数据室查询速度缓慢。 zabbix里面最大的表就是history和history_uint两个表,而且zabbix里面的时间是使用的时间戳 阅读全文
posted @ 2018-12-25 14:52 ArchitecTang 阅读(4433) 评论(0) 推荐(0) 编辑