码迷,mamicode.com
首页 >  
搜索关键字:sbin    ( 4289个结果
逻辑读时的cbc latch(三)
继续验证使用索引时,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
centos6.6中service启动gearman服务
#!/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添加新模块?
有一个在用的nginx,以yum方法安装的,怎样在不改动配置的情况下,为它添加模块.以添加spdy模块为例.编译新模块预编译./configure --prefix=/etc/nginx \ --sbin-path=/usr/sbin \ --conf-path=/etc/nginx/ngin...
分类:其他好文   时间:2014-11-15 21:42:26    阅读次数:344
linux常用命令(一)
命令的格式:命令 -选项 参数例:ls -la /etc选项可以结合使用. 代表的是当前目录.. 代表当前目录的父目录root用户常用命令地址root:/sbin/usr/sbin所有用户常用命令地址all users:/bin/usr/binbin-->binary usr-->user sbi....
分类:系统相关   时间:2014-11-15 16:55:53    阅读次数:236
Ubuntu下apt-get 安装apache2、php、mysql后的默认路径
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
linux系统目录结构
系统目录:==============/bin:系统命令目录/dev:设备目录/home:用户的主目录/lib:系统库目录 .so动态库 .a 静态库/media:多媒体目录/mnt:挂载目录/proc:内存目录/sbin:超级用户命令目录 -->只用root用户才能使用/tmp:临时文件目录/va...
分类:系统相关   时间:2014-11-15 11:24:23    阅读次数:161
mysql 慢日志分析脚本
#!/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
一键优化系统脚本 for centos6.x
#!/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
centos6.6下编辑安装mysql-5.6.21
参考以下链接: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
查看cpu个数及核数、硬盘、内存信息及各个软件的版本
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!