Archive for the ‘Softs’ Category

Q4M

星期四, 8月 7th, 2008

What is Q4M?

Q4M (Queue for MySQL) is a message queue licensed under GPL that works as a pluggable storage engine of MySQL 5.1, designed to be robust, fast, flexible. The development started in late December of 2007, and although it is very primitive, operates quite swiftly.
To start using Q4M, download either a binary or source distribution from the install page, and follow the installation instructions. A small tutorial is also avialable. You may use SQL to access Q4M queues, or there is a wrapper module available for perl (Queue::Q4M).
For more information, please read the developer’s weblog (Kazuho@Cybozu Labs) or subscribe to the mailing list
看上去非常不错,自己没实际用过,希望有用过的朋友分享一下经验。

Share/Save/Bookmark

Web Page Analyzer

星期一, 7月 7th, 2008

推荐一个站点:http://www.websiteoptimization.com/services/analyze/

可以分析网页的执行效率同时会给出诸多改进的地方,不错!

感谢laurence的推荐:)

Share/Save/Bookmark

架设yum服务器简单笔记

星期二, 7月 1st, 2008

3、4年前热衷架设yum和apt服务器,过后很久没在做过,现在都忘了,今天因为要用到,所以就做个笔记:
yum-3(印象中yum-2以前)以前是用:yum -arch /opt/rhel/rpms/ 来建立repo。
yum-3以后建立repo必须用createrepo:
rpm -Uvh createrepo-0.4.11-3.el5.noarch.rpm
createrepo -v /opt/rhel/5.2/os/

cat /etc/yum.repos.d/rhel.5.2.repo
[os]
name=Server1 Server Repository
baseurl=http://apt.ourlinux.net/rhel/5.2/os/
#baseurl=file:///opt/rhel/5.2/os/
gpgcheck=0

Share/Save/Bookmark

安装perl的crc32模块

星期一, 6月 30th, 2008

因为要写一个相关的perl脚本,需要crc32函数,默认的perl又不带,没办法只好安装一个:

  1. 下载:
    wget -c http://search.cpan.org/CPAN/authors/id/S/SO/SOENKE/String-CRC32-1.4.tar.gz

(more…)

Share/Save/Bookmark

rhms-0.5.0 发布了

星期日, 6月 29th, 2008

邮件服务器解决方案 rhms-0.5.0 发布了。这个版本的亮点主要有:

* 增加了 SPF 检测功能,有效抵挡垃圾邮件;
* 增加了 DKIM/DomainKeys 的检测和签署功能;
* 增加了 Horde WebMail 1.1;
* 为 Apache 增加了 TLS/SSL 支持;
* 更灵活的用户收发邮件权限控制;
* 增加了对已有 MySQL 环境的支持;
* Postfix, Dovecot, Amavisd-new, SquirrelMail 都升级到了最新版本;

下载地址:
(more…)

Share/Save/Bookmark

Memcache的备忘

星期五, 6月 27th, 2008

把memcache使用时的一些细节记录下来.

  • memcache每一个item上限是1M,注意不要超出上限(碧轩补充strlen(key+value) <= 1048521 bytes
  • memcache本身并不支持namespace,但是可以通过一些手段模拟出namespace的效果来,见Memcache 中模拟 namespace
  • 刚接触memcache的时候,可能会写出这样的代码来

(more…)

Share/Save/Bookmark

用snmpwalk检测远端服务器上的net-snmp是否支持64位计数[转帖]

星期五, 6月 27th, 2008

主要是工作中需要用cacti来画服务器的流量图
这就牵扯到远端服务器上的net-snmp是否支持64位计数
如果不支持的话当流量大于100M得出来的数据就不准了
所以存在有检测一说
snmpwalk -v 2c -c public 10.10.10.10 ifHCInOctets
这里”2c”是snmp的版本号、”public”是远端服务器的community string
10.10.10.10是远端的服务器的ip地址
这个命令如果返回“IF-MIB::ifHCInOctets = No Such Object available on this agent at this OID”类似的错误的话,就说明远端的net-snmp不支持64位计数
反之如果返回的有几行含有“Counter64:”的话
那么表明是支持的

Share/Save/Bookmark

httperf 一个高性能的压力测试工具

星期四, 6月 26th, 2008

做个标记:)

Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance. The focus of httperf is not on implementing one particular benchmark but on providing a robust, high-performance tool that facilitates the construction of both micro- and macro-level benchmarks. The three distinguishing characteristics of httperf are its robustness, which includes the ability to generate and sustain server overload, support for the HTTP/1.1 and SSL protocols, and its extensibility to new workload generators and performance measurements.

Httperf 是一个高效的 http 压力测试工具,使用它可以模拟出超过1千的并发访问,能充分测试出 web server 的性能。而之前使用的 siege 测试工具则未能突破 500 个并发测试(如果您知道如何可以实现,请告诉我)

(more…)

Share/Save/Bookmark

跨平台、多浏览器页面测试

星期四, 6月 26th, 2008

给自己做个标记:)

browsershots提供了Linux、Windows、Mac os、BSD四个平台下的多个浏览器的页面截图,很强大。不过我主要就看看Windows和Mac os下的效果就好,选择太多浏览器会导致速度非常慢。

(more…)

Share/Save/Bookmark

FireFox3推荐安装附加组件Top10(附官方主页和下载地址)

星期四, 6月 26th, 2008

2008年6月17日(美国时间,对应中国时间为18日)是FireFox3下载日,FireFox3今天会得到很多人的关注。

但是,在我们关注FireFox的同时,请不要忘记那些为FireFox立下汗马功劳的FireFox附加软件(附加组件)了。因为正是这些丰富的 FireFox附加组件,创造了FireFox的辉煌。新版本的FireFox3发布之时,一定会有一批FireFox附加组件因没有跟进更新而倒下,但 是我们高兴的看到:已经有众多的知名度很高的FireFox活跃附加组件,已经开始提供支持FireFox3的最新版本下载。下面就让我们看看这些“已经 支持FireFox3的最实用火狐附加组件Top10”。当然,每个人心中都用自己心目中的“FireFox最实用附加组件Top10”,这里只是从程序 员和开发人员群体中统计出来数据。

(more…)

Share/Save/Bookmark