上一页 1 ··· 3 4 5 6 7 8 9 下一页

2016年2月15日

摘要: #!/bin/bash #author:V #Dispaly:auto delete mysql backup. BACKDIR=(/home/11/mysqlbackup/ /home/full/) DAYS=2 FILENAME="full*" LOGNAME=/var/log/autodel. 阅读全文
posted @ 2016-02-15 10:30 -V 阅读(371) 评论(0) 推荐(0) 编辑

2016年2月4日

摘要: 先使用主机链接Mysql模板 。 然后写获取mysql状态的脚本,即配合zabbix模板里面的参数的脚本。 #!/bin/bash MYSQL_USER='zabbix' #这里为在本地数据库授权的账户and密码哦 # 密码 MYSQL_PWD='shiyiwen' # 主机地址/IP MYSQL_ 阅读全文
posted @ 2016-02-04 11:31 -V 阅读(934) 评论(0) 推荐(0) 编辑

2016年1月19日

摘要: mark一下时间2016年1月19日09:42:49mono是指由Novell公司(由Xamarin发起,并由Miguel de lcaza领导的,一个致力于开创·NET在Linux上使用的开源工程之前用上图的软件包来搭建环境、发现坑不要太多。网上教程很多,但是大多数没有说出有坑的存在,这里我们就不... 阅读全文
posted @ 2016-01-19 10:23 -V 阅读(2311) 评论(3) 推荐(3) 编辑

2016年1月15日

摘要: # -*- coding:utf-8 -*-#author:Vdef tol (file1,gui): #写一个方法,定义文件,or 匹配规则 import re patt = re.compile(gui)#print(type(patt)) f = open(file1,... 阅读全文
posted @ 2016-01-15 10:38 -V 阅读(5738) 评论(0) 推荐(0) 编辑

2016年1月14日

摘要: 1. 正则表达式基础1.1. 简单介绍正则表达式并不是Python的一部分。正则表达式是用于处理字符串的强大工具,拥有自己独特的语法以及一个独立的处理引擎,效率上可能不如str自带的方法,但功能十分强大。得益于这一点,在提供了正则表达式的语言里,正则表达式的语法都是一样的,区别只在于不同的编程语言实... 阅读全文
posted @ 2016-01-14 16:58 -V 阅读(320) 评论(0) 推荐(0) 编辑
 
摘要: # -*- coding: utf-8 -*-#author:vdef sywmemeda(l): #list 冒泡排序 length = len(l) for i in range(length-1,0,-1): print(i) ... 阅读全文
posted @ 2016-01-14 12:25 -V 阅读(521) 评论(0) 推荐(0) 编辑
 
摘要: # -*- coding: utf-8 -*-#author:vdef shiyiwenpapa(): def sywmemeda(l): #冒泡排序 length = len(l) for i in range(length-1,0,-1): ... 阅读全文
posted @ 2016-01-14 12:24 -V 阅读(307) 评论(0) 推荐(0) 编辑
 
摘要: Python对文本文件的处理。对文本操作之前,必须要先open这个文件,open完成之后需要close。# -*- coding: utf-8 -*-f=open('test.txt','w') #新建或者打开一个文件,如果存在就清空f.write('Hello,XiaoYu!') #讲文本... 阅读全文
posted @ 2016-01-14 12:00 -V 阅读(724) 评论(0) 推荐(0) 编辑

2016年1月8日

摘要: 环境centos6php5.6nginx 1.8防火墙均关闭我在这里简单描述一下过程#install nginxyum -y install pcre pcre-devel openssl opensll-devel gcc* #only mini install centos6adduser w... 阅读全文
posted @ 2016-01-08 13:47 -V 阅读(283) 评论(0) 推荐(0) 编辑

2016年1月4日

摘要: 本人对varnish也是新手,这里记录一下安装步骤!环境:centos6.6varnish安装包下载:wget https://repo.varnish-cache.org/source/varnish-3.0.7.tar.gz先上我的拓扑图(基础拓扑为LVSDR环境) LVS不在这里讲解安装yu... 阅读全文
posted @ 2016-01-04 15:52 -V 阅读(544) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页