码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
zabbix监控varnish(shell)
#!/bin/bash /usr/local/bin/varnishstat-1>/tmp/varnish.$$ awk‘{ printf("%s:%s",$1,$2) }‘/tmp/varnish.$$ rm-rf/tmp/varnish.$$Usage:Asrootsetupacronjob:*****/usr/local/varnish/bin/varnishstat-1>/tmp/varnishstatAddanuserparametertozabbix:UserParameter=..
分类:其他好文   时间:2014-10-01 01:30:20    阅读次数:245
zabbix自动安装server(shell)
#!/bin/bash DBUSER=‘root‘ DBPASS=‘‘ DBHOST=‘localhost‘ ZBX_VER=‘2.0.1‘ functioncheckReturn{ if[$1-ne0];then echo"fail:$2" echo"$3" exit else echo"pass:$2" fi sleep3 } cat<<"eof" ===RUNATYOUROWNRISK=== DONOTRUNONEXISTINGINSTALLATIONS,YOU*WILL*LOS..
分类:其他好文   时间:2014-10-01 00:58:00    阅读次数:363
zabbix自动安装agent(shell)
#!/bin/bash #./zabbixagent.sh172.16.103.16172.16.103.134 #$1masteraddress,$2local_listen_ip groupaddzabbix&&useraddzabbix-gzabbix cat>>/etc/services<<EOF zabbix-agent10050/tcpZabbixAgent zabbix-agent10050/udpZabbixAgent zabbix-trapper1..
分类:其他好文   时间:2014-10-01 00:41:30    阅读次数:209
adb devices 命令显示errors
刚开始报error:devices not found重新安装adb 驱动。解决方法:adb kill-serveradb start-serveradb remount再使用adb devices和adb shell就可以使用android adb功能了。转自:http://blog.csdn.n...
分类:数据库   时间:2014-10-01 00:18:10    阅读次数:523
线性表之链表源代码
//链表 #include #include using namespace std; typedef struct LNode { int data; struct LNode *next; }LNode,*LinkList; int InitList_L(LinkList &L) { L=new LNode; L->next=NULL; return 1; } void Inpu...
分类:其他好文   时间:2014-10-01 00:16:00    阅读次数:242
shell编程基础
1、人类如何与计算机"沟通"?翻译官:编译器、解释器;编程语言:机器语言、汇编语言、高级语言静态语言:编译型语言强类型语言:变量在使用之前,需要声明定义,甚至需要初始化事先转换成可执行格式C、C++、Java、C#动态语言:解释型语言弱类型语言:变量在使用之前,不需要声..
分类:其他好文   时间:2014-09-30 23:59:21    阅读次数:259
Linux中变量$#,$@,$0,$1,$2,$*,$$,$?的含义
$# 是传给脚本的参数个数$0 是脚本本身的名字$1 是传递给该shell脚本的第一个参数$2 是传递给该shell脚本的第二个参数$@ 是传给脚本的所有参数的列表$* 是以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个$$ 是脚本运行的当前进程ID号$? 是显示最后命令的退出...
分类:系统相关   时间:2014-09-30 23:19:30    阅读次数:268
2014/09/30 Learning Note
Vbird Linux:Vim Learning:http://linux.vbird.org/linux_basic/0310vi.phpBash Shell:http://linux.vbird.org/linux_basic/0320bash.phpKey words of reminder:...
分类:其他好文   时间:2014-09-30 21:17:00    阅读次数:172
大小端测试程序
方法一:#include#includeint main(int argc ,char *argv[]){ union name{ int i; char a; }c; c.i=0x04030201; printf("%d\n",c.a);//输...
分类:其他好文   时间:2014-09-30 20:25:50    阅读次数:195
Ubuntu server下中文里面和月份出错的解决
月份出错可能影响shell脚本运行,还是改一下。 1 zxw@hostUbuntu1:~$ ifconfig eth0      Link encap:浠ュお缃 纭欢鍦板潃 00:0c:29:fb:c0:4c             inet 鍦板潃:  骞挎挱:  鎺╃爜:255.255.255.0           inet6 鍦板潃: fe80::20c:29ff:fefb...
分类:其他好文   时间:2014-09-30 18:36:19    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!