继续验证使用索引时,cbclatch相关情况,使用solaris中的dtrace编写dtrace脚本morecbc.d
#!/usr/sbin/dtrace-s-n
char*memnr;
intlatchaddr;
dtrace:::BEGIN
{
i=1;
latchaddr=0;
}
pid$1::sskgslcas:entry
{
memnr=copyin(arg0,12);
latchaddr=arg0;
printf("[%2x%2x%2x%2x|%2..
分类:
其他好文 时间:
2014-11-17 19:41:57
阅读次数:
321
#!/bin/bash
# chkconfig: - 85 15
#descrīption: service(/usr/local/gearmand-1.1.12/sbin/gearmand)
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting $prog"
echo -e " gearman : ...
分类:
其他好文 时间:
2014-11-15 23:19:09
阅读次数:
496
有一个在用的nginx,以yum方法安装的,怎样在不改动配置的情况下,为它添加模块.以添加spdy模块为例.编译新模块预编译./configure --prefix=/etc/nginx \ --sbin-path=/usr/sbin \ --conf-path=/etc/nginx/ngin...
分类:
其他好文 时间:
2014-11-15 21:42:26
阅读次数:
344
命令的格式:命令 -选项 参数例:ls -la /etc选项可以结合使用. 代表的是当前目录.. 代表当前目录的父目录root用户常用命令地址root:/sbin/usr/sbin所有用户常用命令地址all users:/bin/usr/binbin-->binary usr-->user sbi....
分类:
系统相关 时间:
2014-11-15 16:55:53
阅读次数:
236
apache: 采用apt-get 在线安装,安装路径应在/etc/apache2目录下 apache配置文件/etc/apache2/apache2.conf Apache模块路径:/usr/sbin/apachectl启动路径apache:/etc/init.d/apache2 restart ...
分类:
数据库 时间:
2014-11-15 12:38:20
阅读次数:
284
系统目录:==============/bin:系统命令目录/dev:设备目录/home:用户的主目录/lib:系统库目录 .so动态库 .a 静态库/media:多媒体目录/mnt:挂载目录/proc:内存目录/sbin:超级用户命令目录 -->只用root用户才能使用/tmp:临时文件目录/va...
分类:
系统相关 时间:
2014-11-15 11:24:23
阅读次数:
161
#!/bin/bash#analysisthemysqlslowlog#Writenbylandline#IPadd=`grep`hostname`/etc/hosts|awk-F‘‘‘END{print$1}‘`IPadd=`/sbin/ifconfigeth0|grepBcast|awk-F:‘{print$2}‘|awk‘{print$1}‘`serverday=`date-d‘-1day‘+%Y-%m-%d`nowday=`date"+%y%m%d"`yestoday=`date-d‘-1day‘+%..
分类:
数据库 时间:
2014-11-15 06:44:39
阅读次数:
290
#!/bin/bash#setenvexportLANG="en_US.UTF-8"exportPATH=$PATH:/bin/sbin:/usr/sbin#whetherroottorunninguserif[[$(whoami)!=root]];thenecho"pleasesu-rootrunthescript."fiSERVICE=`whichservice`CHKCONFIG=`whichchkconfig`./etc/init.d/functions#installpackagesinstallT..
分类:
其他好文 时间:
2014-11-15 06:42:14
阅读次数:
143
参考以下链接:http://blog.csdn.net/wendi_0506/article/details/394783691.进入MySQL官方网站(下载需申请账号),下载源码包。下载tar包下来再上传到Linux机器上面,或在Linux上面下载。2.yuminstallgccgcc-c++ncurses-develperl
cmake
-y3.useradd
-M-s/sbin/nologinmysql4...
分类:
数据库 时间:
2014-11-15 06:40:45
阅读次数:
231
#cat/proc/cpuinfo|grep"physicalid"|sort|uniqphysicalid:0physicalid:1#cat/proc/cpuinfo|grep"physicalid"|grep"0"|wc-l4说明该服务器是有2个cpu每个cpu是4核查看nginx版本#cd/usr/local/nginx/sbin/以自己的nginx安装目录为准#./nginx-v查看硬盘分区情况#df-lh查看服务器硬..
分类:
其他好文 时间:
2014-11-14 18:06:51
阅读次数:
181