2016年6月15日
摘要: nagios的插件分为两个部分: GPING OK – rtt min/avg/max/mdev = 0.897/0.897/0.897/0.000 ms|time=0.897ms;20;40;; ok=1 cpu_user:OK-0% cpu_system:OK-0% cpu_idle:WARNI 阅读全文
posted @ 2016-06-15 15:57 zhaobin022 阅读(181) 评论(0) 推荐(0) 编辑
  2016年6月1日
摘要: json.dumps(log_list,default=utils.json_datetime_handler) 阅读全文
posted @ 2016-06-01 17:53 zhaobin022 阅读(358) 评论(0) 推荐(0) 编辑
  2016年5月31日
摘要: import urllib2 import json import cookielib def urllib2_request(url, method="GET", cookie="", headers={}, data=None): """ :param url: 要请求的url :param cookie: 请求方式,GET、POST、DELETE、PUT.. ... 阅读全文
posted @ 2016-05-31 15:27 zhaobin022 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 快速排序 选择排序 插入排序 阅读全文
posted @ 2016-05-31 11:25 zhaobin022 阅读(156) 评论(0) 推荐(0) 编辑
  2016年4月8日
摘要: 先查找tenant [root@controller01 ~]# openstack project list+ + +| ID | Name |+ + +| 3013fa8f600145108b836228236cb8f3 | demo || 4a930be69d0540d38d5529449d9 阅读全文
posted @ 2016-04-08 09:55 zhaobin022 阅读(514) 评论(0) 推荐(0) 编辑
摘要: neutron port-update e9693022-d3d7-4110-8baa-74e7fa19d170 --allowed-address-pairs type=dict list=true ip_address=192.168.26.122,ip_address=192.168.26.1 阅读全文
posted @ 2016-04-08 09:54 zhaobin022 阅读(317) 评论(0) 推荐(0) 编辑
  2016年3月8日
摘要: #/usr/bin/python#coding=utf-8 import crypt #导入crypt模块import timesalt = '$6$Ndpwv8KI$'word = 'test'print crypt.crypt(word,salt) 阅读全文
posted @ 2016-03-08 11:06 zhaobin022 阅读(236) 评论(0) 推荐(0) 编辑
  2016年3月4日
摘要: JAVA_OPTS="-Xmx4000M -Xms4000M -Xmn600M -XX:PermSize=500M -XX:MaxPermSize=500M -Xss256K -XX:+DisableExplicitGC -XX:SurvivorRatio=1 -XX:+UseConcMarkSwe 阅读全文
posted @ 2016-03-04 15:18 zhaobin022 阅读(171) 评论(0) 推荐(0) 编辑
  2015年12月28日
摘要: https://github.com/zhaobin022/ftp 阅读全文
posted @ 2015-12-28 17:36 zhaobin022 阅读(118) 评论(0) 推荐(0) 编辑
  2015年12月20日
摘要: id name time operation EDIT SERVE... 阅读全文
posted @ 2015-12-20 23:26 zhaobin022 阅读(184) 评论(0) 推荐(0) 编辑