mysql慢查询

mysql服务器有一项功能,可以检测到哪条sql语句查询得比较慢,就是慢查询slowlog,现在介绍如何开启. 在 mysqld 下面增加如下代码: long query time = 1 log slow queries = /usr/local/mysql/data/slow.log log queries not using indexes long query time = 1

centos6.4更新163源

1.备份现在的源文件 mv /etc/yum.repos.d/CentOS Base.repo /etc/yum.repos.d/CentOS Base.repo.bak 2.下载163源 cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS6 Base 163.repo 3.把下载文件改成源文件

解决 drbdadm create-md ha exited with coolcode 40

站长在使用drbd的时候,执行drbdadm create md ha 时出现: Device size would be truncated, which would corrupt data and result in 'access beyond end of device' errors. You need to either use external meta data r

centos安装keepalived

yum install keepalived 编辑keepalived.conf: vi /etc/keepalived/keepalived.conf Configuration File for keepalived global defs { router id bj ifc ngix } vrrp instance VI 1 { state BACKUP interfa

at命令详解

假如我们只是想要让特定任务运行一次,那么,这时候就要用到at监控程序了. 设置at命令很简单,指示定运行的时间,那么就会在哪个时候运行.at类似打印进程,会把任务放到 /var/spool/at目录中,到指定时间运行它 . at命令相当于另一个shell,运行at time命令时,它发送一个命令,可以输入任意命令或者程序.at now + time命令可以在指示任务. 假设处理一个大型数据库,要在