1. 自动登陆 #ssh-keygen #cat id_dsa.pub >> ~/.ssh/authorized_keys 2。 设置环境变量 export PATH=/usr/jdk/bin:\$PATH:/usr/jdk/jre/bin 3. ?运行脚本 bash new.sh eg:ssh -q -o StrictHostKeychecking=no ...
分类:
其他好文 时间:
2014-09-23 18:05:55
阅读次数:
195
参考资料
http://faye.jcoglan.com/
Faye is a publish-subscribe messaging system based on the Bayeux protocol/CometD. It provides message servers for Node.js and Ruby, and clients for use on...
分类:
Web程序 时间:
2014-09-23 12:12:24
阅读次数:
192
安装TPCC-MySQL做压力测试,由于TPCC-MySQL是bzr工具进行版本控制的,所以要先安装bzr [root@mha_backup?/root]
#rpm?-Uvh?http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retriev...
分类:
数据库 时间:
2014-09-22 21:22:53
阅读次数:
277
类变量也叫静态变量,也就是在变量前加了static 的变量;实例变量也叫对象变量,即没加static 的变量;区别在于: 类变量和实例变量的区别在于:类变量是所有对象共有,其中一个对象将它值改变,其他对象得到的就是改变后的结果;而实例变量则属对象私有,某一个对象将其值改变,不影响其他对象;例:pub...
分类:
其他好文 时间:
2014-09-22 17:30:02
阅读次数:
192
在安装tpcc-mysql时候,报错 [root@mha_backup?/root]
#rpm?-Uvh?http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving?http://dl.fedoraproject.org/pub/epel/5/i386/epel-...
分类:
数据库 时间:
2014-09-22 15:25:32
阅读次数:
310
1.配置yum:( 需要自己下载mplaler目录里的文件 )vim /etc/yum.repos.d/yum.repo[mplay]name=Instructor ScalableFileSystem Repositorybaseurl=http://192.168.2.251/pub/mplay...
分类:
系统相关 时间:
2014-09-21 17:21:00
阅读次数:
218
编写出这些脚本的需求是把慢查日志写入数据库中,方便查看。
1. 由于默认的mysql.slow_log表使用的是csv数据引擎,不支持对数据进行索引,所以需要将其修改为MyISAM引擎,并对query_time字段进行索引以优化查寻效率。
2. 需要对所有的用户进行授权,让大家要可通过调用 pub_getSlowQuery( limit ) 存储过程获取一天的慢查记录数据。
3. 存储过程命名约定:priv_ 起头的为私有存储过程,不需要对用户授权,以pub_起头的存储过程对所有的会员进行授权,只允许运行,...
分类:
数据库 时间:
2014-09-19 13:54:25
阅读次数:
299
http://cs.au.dk/~mis/dOvs/slides/Kevin-linear-scan-reg-alloc.pdf ftp://ftp.ssw.uni-linz.ac.at/pub/Papers/Moe02.PDF Greedy Register Allocation in LLVM 3.0 http://blog.llvm.org/2011/09/greedy-registe...
分类:
其他好文 时间:
2014-09-18 20:49:45
阅读次数:
577
1、下载apachewgethttp://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.10.tar.gzwgethttp://archive.apache.org/dist/apr/apr-1.5.1.tar.gzwgethttp://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gzwgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8..
分类:
其他好文 时间:
2014-09-18 16:49:04
阅读次数:
205
使用android提供的android.os包中的counterDownTimer可以很方便的实现倒计时功能,具体如下: import android.os.CountDownTimer;public class Couterdown extends CountDownTimer { pub...
分类:
其他好文 时间:
2014-09-17 21:37:52
阅读次数:
596