摘要: 1 #!/usr/bin/env python 2 # coding:utf-8 3 4 import sys,time 5 6 class DisplayFormat(object): 7 8 def format_size(self,size): 9 ... 阅读全文
posted @ 2015-01-16 15:20 zenghui940 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 1 操作系统:centos release 6 2 安装包命令查找: 3 yum whatprovides */lspci 4 查看主板型号: 5 dmidecode |grep -A16 "System Information$" 6 内存槽及内存条: 7 dmidecode |grep -A1... 阅读全文
posted @ 2015-01-16 15:08 zenghui940 阅读(2648) 评论(0) 推荐(0) 编辑
摘要: 泛域名在主站中的设置1,通过dnspod配置如下*.test.com Aip地址 阅读全文
posted @ 2015-01-16 15:06 zenghui940 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1 iptables 2 3 4 iptables -D INPUT 1 删除第一条规则 5 iptables -D INPUT -s 192.168.11.1 -j DROP 以删除匹配到的内容规则 6 iptbales -I INPUT -s ip -j DROP 7 ipt... 阅读全文
posted @ 2015-01-16 15:03 zenghui940 阅读(196) 评论(0) 推荐(0) 编辑
摘要: mysqldump -uroot -proot -h192.168.11.23 wdzj_wenda wenda_answer -w "id > 1000 and id wenda_answer.sql 阅读全文
posted @ 2015-01-16 14:01 zenghui940 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 3 #write by zhumaohai(admin#centos.bz) 4 #author blog: www.centos.bz 5 6 7 #显示菜单(单选) 8 display_menu(){ 9 local soft=$1 10... 阅读全文
posted @ 2015-01-16 13:58 zenghui940 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1 由于公司需要,需要将线下的数据库每几个小时导几条数据到线上数据库中 2 3 [root@www bbs]# rpm -qa | grep "expect" 4 expect-5.44.1.15-5.el6_4.x86_64 5 如果没有 yum -y install expect 6 ... 阅读全文
posted @ 2015-01-16 09:33 zenghui940 阅读(368) 评论(0) 推荐(0) 编辑