寻觅生命中的那一片浅草......

每月存档 五月, 2009

linux服务器每秒并发处理数的计算方法

1、利用网络处理量计算。

计算参考公式:

并发 = connection established / min(server keepalive, server timeout)

翻译一下:

并发 = 服务器传输链接数 除以 服务器软件的keepalive设置和服务器软件的超时设置之间的最小值

这个公式算出来的数字是keepalive时间段内的平均值,比真实平均值要小一点,如果想找最大值就要设定keepalive为0或1,然后多探测几次。

阅读全文»

Cacti可以监控的东西

Cacti可以监控的东西,下面看看,可多啦

Handy Repopulate Poller Cache Script

Download and Documentation

http://forums.cacti.net/about10292.html

New Advanced Ping Template Version

Download and Documentation

http://forums.cacti.net/about10049.html

Powerware 9120 UPS via SNMP

Download and Documentation

http://forums.cacti.net/about5427.html

Smoke Ping Like

Download and Documentation

http://forums.cacti.net/about8503.html

Apache stats Template

Download and Documentation

http://forums.cacti.net/about9861.html

Dell PowerEdge(1750,2650,2800,6650)/PowerVault Templates – Temperature
PowerEdge 2650 template also works with a PowerVault 775N

Download and Documentation

http://forums.cacti.net/about15451.html

ZXTM load balancer product from Zeus templates

Downloads and Documents

http://forums.cacti.net/about15287.html

Cisco SAN MDS9020 Switch Port statistics

Download and Documentation

http://forums.cacti.net/about15797.html

阅读全文»

CentOS5.0上用yum方式安装Cacti0.8.7d

上次安装不成功,最终放弃,总是不甘心,这次重来,这次安装还算顺利!发现有些事情,放一放,重新来,就会有新的思路,也会发现新的方法,但所有的事情都经得起等待吗?

1、首先,激活额外的yum源

# yum install yum-priorities
# wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm -K rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

阅读全文»

使用find命令

find最简单的应用,是搜索当前目录及其子目录下的文件。

$ find .
./tp1301.txt
./up1301.txt
./tp1302.txt
./up1302.txt
./Up1303.txt
./misc/uploads
./misc/uploads/patch12_13.diff

像往常一样,那个点(.)代表当前目录。在以上例子里,find列出了当前目录及其子目录下的所有文件。

如果只想搜索up开头的文件名,使用’-name’参数。

也就是如下命令:
阅读全文»

cygwin中文乱码

直接执行
alias ls=’ls –color –show-control-chars –time-style=long-iso’
或者把上面的内容加到/etc/profile中重启Cygwin即可。

为了使使用更方便,推荐增加如下配置信息:

1. 编辑用户home目录下的文件.inputc,去除以下几行的注释:

set meta-flag on

# 关闭bash命令行8字节字符转义符的转换
set convert-meta off

# 使bash命令行支持8字节字符输出
set output-meta on
set input-meta on

2 编辑用户home目录下的文件.bash_profile,在文件末尾加上下面几行:

alias ls=’ls –color –show-control-chars –time-style=long-iso’
export LC_ALL=zh_CN.GB23122
export LC_CTYPE=zh_CN.GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=”@im=Chinput”3
stty cs8 -istrip
stty pass8
# Update: 少了这个less就不支持中文了
export LESSCHARSET=latin1

转载自:http://blog.sina.com.cn/s/blog_3ee207aa010008ml.html

2009年五月
« 4月   6月 »
 123
45678910
11121314151617
18192021222324
25262728293031