摘要: 索引查询 http://10.199.137.115:9200/_cat/indices?format=json 返回json字符串的索引状态 增加索引名称过滤 http://10.199.137.115:9200/_cat/indices/sbf*?format=json 增加健康状态过滤 htt 阅读全文
posted @ 2019-04-04 14:26 Rohero 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: 环境准备 环境规格: python3.5 django2.0 django-simple-sso-0.14 环境安装: pip install django-simple-sso-0.14 环境说明: opstest01为django应用,作为服务端使用,端口8001 testsso为django应 阅读全文
posted @ 2019-04-03 21:02 Rohero 阅读(1594) 评论(0) 推荐(0) 编辑
摘要: 环境准备 环境要求: python3 django2 pip3 模块安装: pip3 install django-rest-framework pip3 install django-rest-swagger 搭建项目: 搭建django项目,创建testapi app 参数配置 setting. 阅读全文
posted @ 2019-03-29 16:41 Rohero 阅读(2453) 评论(0) 推荐(0) 编辑
摘要: 1.SNMP TABLE ERROR : Requested table is empty or does not exist 这是SNMP的服务端查询客服端失败,失败的原理是权限不足 解决办法: vi /etc/snmp/snmpd.conf 添加下面一行到相似的位置处 view systemvi 阅读全文
posted @ 2018-05-09 20:26 Rohero 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1.环境 python2.7+selenium+phantomjs+linux 2.代码 阅读全文
posted @ 2017-12-21 15:55 Rohero 阅读(549) 评论(1) 推荐(0) 编辑
摘要: 1.需求分析 需求:应用easyui制作前端表格数据显示,flask制作后端路由 环境搭建略 2.easyui前端实现 2.1 easyui是前端实用的一个框架,这里我们要实现的是easyui的CRUD数据网格,参考资料:http://www.runoob.com/jeasyui/jeasyui-a 阅读全文
posted @ 2017-09-26 15:30 Rohero 阅读(1753) 评论(0) 推荐(0) 编辑
摘要: #! /usr/bin/env python # -*- coding: utf-8 -*- import urllib2, urllib, cookielib, re, time class Robot(object): def __init__(self, forumUrl, userName, password, proxy = None): ''' 初始化论坛u... 阅读全文
posted @ 2017-08-22 15:14 Rohero 阅读(856) 评论(0) 推荐(0) 编辑
摘要: http2.4.27 rpm包制作1.安装rpm-buildyum -y install rpm-build2.使用普通用户创建spec规则文件su - lxhvim httpd.spec Name: httpdVersion: 2.4.27 Release: 1%{?dist}Summary: c 阅读全文
posted @ 2017-08-01 15:58 Rohero 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 将df -h的执行结果输出到stdout,再用readlines方法读出来,再print出来 这个方法可以将某个命令的结果输出到python 阅读全文
posted @ 2017-04-12 18:21 Rohero 阅读(13831) 评论(0) 推荐(0) 编辑
摘要: ##统计word中的各个字符的出现的次数,并统计出所有前十名的字符使用次数 # -*- coding:utf-8 -*- word='''awfesdafhjkcasadckjsdackjsadvcnksausafdsch fsadfdsaasdfsdacsafsdaas csaasfdasdfsda sfadfsdafsadfjtyurjryjghnkuitki''' list1 = lis... 阅读全文
posted @ 2016-12-08 17:23 Rohero 阅读(9149) 评论(0) 推荐(0) 编辑