- 博客(141)
- 收藏
- 关注
转载 使用Hcache查看是谁占用了系统Buffer&Cache?
一、hcache Linux用户可能经常遇到的一个问题是内存大部分都被Buffer和Cache占用了,但是有时候我们想知道到底Cache了些什么内...
2017-11-20 17:19:56
2782
转载 UnicodeDecodeError: 'utf8'解决方法
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd4 in position x: invalid continuation byte...
2017-10-13 09:58:10
2159
转载 Mysql日期计算
MySQL 为日期增加一个时间间隔用date_add()函数 MySQL 为日期减去一个时间间隔用date_sub()函数 ...
2017-10-10 09:39:35
214
转载 Mysql debug模式
以debug模式编译 -DWITH_DEBUG=1 如果想开调试模式,启动的时候要加参数:/usr/local/mysql/support-file...
2017-08-28 14:04:30
465
转载 Python pip源修改
pip-修改国内镜像源 Oct 10, 2016 | 16 Hits mkdir ~/.pip vim ~/.pip/pi...
2017-08-01 14:48:33
55
转载 Python得到代码执行时间脚本
得到代码执行时间脚本: import time t0 = time.time() # start time ...
2017-07-20 09:22:35
59
转载 yum安装包找不到
yum install -y epel-release 在用yum安装软件包的时候 [root@ MHA]# yum install perl-Parallel-ForkM...
2017-07-04 11:20:16
117
转载 centos:下载
centos:下载 http://mirrors.aliyun.com/centos/7.3.1611/isos/x86_64/ ...
2017-07-03 17:22:51
59
转载 Oracle加表空间
--查询表空间使用率select a.tablespace_name,total,free,total-free used from( select tablespace_name,sum(bytes)/1024/10...
2017-01-17 16:19:14
48
转载 redis 慢日志 slowlog
redis 慢日志 slowlog1 slowlog是什么redis的slowlog是redis用于记录记录慢查询执行时间的日志系统。由于slowlog只保存在内存中,因此slowlog的效率很高,完全不用担心会...
2017-01-10 15:52:44
97
转载 Python tule转dict
[root@virtdb55 py]# vi tuledict.pyimport MySQLdb as mdbimport os,time,sysimport commands as coimport datet...
2016-12-22 13:39:09
77
转载 pt-online-schema-change在线DDL
操作的表必须有主键否则会出错误加字段:pt-online-schema-change -u root -h 127.0.0.1 -p 123456 --alter='add column address varchar...
2016-12-19 15:04:52
66
转载 性能监控小工具
atop:性能数据每天都会保存下来,进行追溯http://www.atoptool.nl/downloadatop.phpwget http://www.atoptool.nl/download/atop-2.2-3...
2016-12-15 13:39:22
69
转载 oracle 11.2.0.4安装 vncserver ?
oracle 11.2.0.4安装 vncserveryum whatprovides "*/xhost"xorg-x11-server-utils-7.7-14.el6.x86_64 : X.Org X11 X...
2016-11-15 14:28:02
78
转载 linux根据命令查找包
yum whatprovides "*/xhost"xorg-x11-server-utils-7.7-14.el6.x86_64 : X.Org X11 X server utilitiesRepo : ...
2016-11-14 14:32:33
121
转载 Oracle11.2.0.4 Linux 64bit FTP下载地址
Oracle11GU4介质FTP下载地址 Oracle11.2.0.4 Linux 64bit FTP下载地址server:ftp://104.236.52.210/p13390677_112040...
2016-11-14 13:59:18
864
转载 yum 下载rpm包
yum下载RPM包yum -y install --downloadonly --downloaddir=/tmp python-psutil.x86_64PIP下载python包pip install --do...
2016-11-01 15:10:21
78
转载 Pycharm使用
快捷键:Ctrl + Alt + I 自动缩进行Ctrl + Shift + NumPad- 收缩所有的代码块TAB Shift+TAB 缩进/取消缩进所选择的行Ctrl + Alt + L 代码格式...
2016-10-28 09:46:51
54
转载 Python 给list加序号并转成字典
给list 加序号,转成字典ls3 =['a','b','c','d','e','f']d = dict(enumerate(ls3))print d ...
2016-10-26 10:28:44
1988
转载 Python 查找字符串方法2
#!/bin/env python#-*- coding:utf-8 -*-# multiple searches of a string for a substring# using s.find(su...
2016-10-24 11:02:24
69
转载 Python 查找字符串方法1
#!/bin/env python#-*- coding:utf-8 -*-import retext = "create table t11 (id int,name varchar(20),age int,s...
2016-10-24 11:01:49
55
转载 Python threading多线程
[root@virtdb56 ~]# vi mythread.py#!/usr/bin/env python#-*- coding: UTF-8 -*-import pymongoimport t...
2016-10-12 17:01:28
55
转载 Python multiprocessing 多进程
[root@virtdb56 ~]# more mutiprocessmysql.py#!/usr/bin/env python#-*- coding: UTF-8 -*-import MySQLdb as...
2016-10-12 11:33:14
56
转载 YCSB测试工具应用之Mongo压力测试
YCSB测试工具应用之Mongo压力测试https://github.com/brianfrankcooper/YCSB/tree/master/mongodbCentos 6.7mongodb 3.2....
2016-10-10 15:37:30
224
转载 批量杀进程的shell脚本
批量杀进程的shell脚本ps -ef | grep processname | grep username | grep -v grep | awk {'print $2'} | xargs kill -9 ...
2016-09-30 15:49:39
95
转载 twemproxy redis简单测试
twemproxy分布式中间件:安装:yum install automake libtool -ygit clone git://github.com/twitter/twemproxy.gitcd...
2016-09-29 15:13:45
77
转载 监控redis性能
监控redis性能http://www.cnblogs.com/mushroom/p/4738170.htmlredis-cli -h 192.168.2.59 -p 6000 -a 123456 info | ...
2016-09-28 17:24:02
277
转载 Redis 3.2 主从复制及sentinel自动切换
redis 主从复制及高可用redis编译安装:wget http://download.redis.io/releases/redis-3.2.1.tar.gztar zxvf redis-3.2.1.ta...
2016-09-28 16:48:21
63
转载 Redis缓存应用、分片应用测试
数据类型:如果只用string类型,则相当于memcachedstring类型及操作set name chenhaoget namesetnx name chenhao设置KEY有效期...
2016-09-23 17:15:59
85
转载 Mysql 5.7 memcached plugin
mysql 5.7 memcached plugin通过在mysql进行写,memcached可以直接读取,适合在memcached加速读应用,不过限制多https://yq.aliyun.com/articles/...
2016-09-21 15:29:19
107
转载 Memcached学习、应用
一、基本概述C/S架构,纯内存,集群之间无关,C语言2000行代码,高效,libeventmemcached当内存达到设定值时,会用LRU算法删除过期数据缓存服务器预热内存机制:内存分配:slab...
2016-09-20 15:10:05
114
转载 Oracle全库导出
expdp \"/ as sysdba\" dumpfile =oafull.dmp full=y logfile=oafull.log directory=dir_dump2 job_name=my_job ...
2016-09-18 11:02:11
139
转载 实时统计PG连接数
more listpg.sh#!/bin/bashi=1while(( $i<61 ))do send=`date '+%Y-%m-%d %H:%M:%S'` conn=`ps -ef |gr...
2016-09-10 11:08:05
135
转载 实时统计ORACLE连接数
more conn.sh#!/bin/bashwhile truedo conntime=`date '+%Y-%m-%d %H:%M:%S'` conn=`ps -ef |grep LOCAL=N...
2016-09-10 10:45:58
143
转载 通过触发器分发同步数据
通过触发器分发同步数据create table tab(id int not null primary key,name varchar(20),age int,address varchar(200));cre...
2016-08-25 16:09:18
60
转载 Mysql技术小疑问
Mysql Tips: 1.复制过滤问题:--replicate-do-db=db_name:USE prices; UPDATE sales.january SET amount=amoun...
2016-08-24 10:40:07
45
转载 Python列表排序
列表排序:>>> help(sorted)Help on built-in function sorted in module __builtin__:sorted(...) ...
2016-08-17 14:04:13
49
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人