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