LVSdirector负载均衡器增加IPVSADM脚本
#vimdirector.sh
#!/bin/bash
#chkconfig:-8866
#description:thisscripttoaddlvsIP
VIP=192.168.0.254
DIP=192.168.0.100
RIP1=192.168.0.101
RIP2=192.168.0.102
PORT=80
SCHELE=wrr
LOCKFILE=/var/lock/subsys/ipvsadm
case$1in
st..
分类:
其他好文 时间:
2014-07-25 11:36:02
阅读次数:
8623
A method for browsing Internet of things (IoT) and an apparatus using the same are provided. In the method for browsing IoT, when a mobile device exec...
分类:
移动开发 时间:
2014-07-25 02:28:54
阅读次数:
434
Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.I...
分类:
其他好文 时间:
2014-07-25 02:26:04
阅读次数:
322
#include
main()
{
int x=1,y=0,a=0,b=0;
switch(x)
{
case 1:
switch(y)
{
case 0:a++;break;
case 1:b++;break;
}
case 2:a++;b++;break;
case 3:a++;b++;
}
printf("%d,%d\n",a,b);
}...
分类:
其他好文 时间:
2014-07-24 23:06:53
阅读次数:
217
#include
int q1,q2,q3;
void fun(long n)
{
q1=q2=q3=0;
while(n)
{
switch(n%10)
{
case 1:q1++;break;
case 2:q2++;break;
case 3:q3++;
}
n/=10;
}
}
main()
{
long n=123451123;
fun(n);
...
分类:
其他好文 时间:
2014-07-24 23:04:43
阅读次数:
271
1,case用法SELECT CASE WHEN T.FLAG='0' THEN T.USERID WHEN T.FLAG='1' THEN T.ORGID ELSE NULLEND AS '标识'FROM XTXMXX T2,decode用法--如果FLAG等于1,则转为USERID,如果...
分类:
数据库 时间:
2014-07-24 22:44:23
阅读次数:
281
To import the library to Android Studio, there is two methods that can (or cannot) work. The first one worked for me, but when I tried the second, it ...
分类:
移动开发 时间:
2014-07-24 22:42:13
阅读次数:
284
上一篇blog介绍了因为sql查询information_schema表而导致内存暴涨的case。今天顺便做了一个thd内存的监控:先来介绍下MySQL的内存: 1. 线程内内存:thd->mem_root, 线程在执行sql的过程中,申请的内存从thd->mem_root进行分配,在sql结束的....
分类:
数据库 时间:
2014-07-24 22:42:03
阅读次数:
445
有的时候,需要知道SQLSERVER执行了什么语句,可以用下面的方法:SELECT TOP 1000--创建时间QS.creation_time,--查询语句SUBSTRING(ST.text,(QS.statement_start_offset/2)+1,((CASE QS.statement_e...
分类:
数据库 时间:
2014-07-24 22:22:32
阅读次数:
208
1. CASE WHEN 表达式有两种形式--简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASEWHEN sex = '1' THEN '男' WHEN sex = '2...
分类:
数据库 时间:
2014-07-24 22:20:52
阅读次数:
220