climberlife的nginx版本升级到最新了

这两天nginx升级很快,今天把nginx最新版本BUILD的了,看看有什么不同

Changes with nginx 0.8.46                                        19 Jul 2010

    *) Change: now the "proxy_no_cache", "fastcgi_no_cache",
       "uwsgi_no_cache", and "s觛i_no_cache" directives affect on a cached
       response saving only.

    *) Feature: the "proxy_cache_bypass", "fastcgi_cache_bypass",
       "uwsgi_cache_bypass", and "s觛i_cache_bypass" directives.

    *) Bugfix: nginx did not free memory in cache keys zones if there was
       an error during working with backend: the memory was freed only
       after inactivity time or on memory low condition.

Changes with nginx 0.8.45                                        13 Jul 2010

    *) Feature: ngx_http_xslt_filter improvements.
       Thanks to Laurence Rowe.

    *) Bugfix: SSI response might be truncated after include with
       wait="yes"; the bug had appeared in 0.7.25.
       Thanks to Maxim Dounin.

    *) Bugfix: the "listen" directive did not support the "setfib=0"
       parameter.

net-snmp5.2以下不支持64位系统的解决方法

今天才发现net-snmp还有这么一个问题,检测方法

snmpwalk -c public -v 2c localhost IF-MIB::ifHCInOctets

IF-MIB::ifHCInOctets.1 = Counter64: 3174458
IF-MIB::ifHCInOctets.2 = Counter64: 1585772167
IF-MIB::ifHCInOctets.3 = Counter64: 35696997927
IF-MIB::ifHCInOctets.4 = Counter64: 0
如下如果返回的有几行含有“Counter64:”的话.那么表明是支持的。否则如果返回
No Such Object available on this agent at this OID 就是不支持

如果你是RedHat AS4,就需要解决这个问题
[root@cacti ~]# rpm -qa | grep snmp
net-snmp-5.1.2-11.EL4.7
net-snmp-utils-5.1.2-11.EL4.7
net-snmp-libs-5.1.2-11.EL4.7
net-snmp-devel-5.1.2-11.EL4.7

解决方法:
https://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL4/net-snmp/这里下载已经编译好的net-snmp 5.2的安装包升级就行了。

如果这里也下不到了,本站将提供BT种子下载。稍后公布种子地址
https://www.climberlife.com/test/download.php?file=5net-snmp-for-as4.zip.torrent

rrdtool的利用

cacti用的久了,就会有一些便扭,其实它是基于rrdtool和snmp工具而实现的,rrdtool这个工具好久之前用过,很不错的一个工具,就是装起来费点劲,但灵活而且强大,从今天开始陆续发一些rrdtool的文章,为了自己也为了其他人日后能用到,这些文章很多部分都来源于网络,但不是完全照搬,而是有我自己的测试和理解,今天就先这么个预告吧。

最近想仿bookmooch做个项目

BookMooch:一个交换旧书的网站,09年8月初刚刚诞生。交换的程序很简单,把你不想要的书列在网上,然后如果有人需要(可以通过搜索或浏览别人列出的旧书),你就把书寄给他,然后你就可以得到一个point,当你发现中意的旧书时,就可以用这个point 去交换别人的旧书。寄书的运费是由旧书的主人承担的,基本上就是一种互惠的活动,因为别人寄书给你的时候别人也要承担邮费(你在注册时可以选择只同意国内邮寄或国际范围内都可)。呵呵,所有的书都是等价的,都只值一个point ,不过这样的设定也有它的合理之处,同一本书,在不同人的眼里价值是不一样的,交换可以使双方都得到自己喜欢的书。国内还没有这样的网站,我想这种模式是不是在中国也可以尝试一下呢?

https://bookmooch.com/

你把自己不要的书列出来。然后去找自己想要的书。自己有大于等于1点的积分才可以要求别人寄你想读的书给你

  • Type books in: enter books you own and want to give away. Each book typed in gets you 1/10th of a point.(你自己列出的不要的书,每本书0.1点)
  • Give books away: respond to a mooch request, and send your book to them. 1 point awarded, 3 points if sent to another country.(如果有人要你寄出你所列的某本书,你成功寄出了,会得到1点积分,如果寄国外,得到3点积分)
  • Acknowledge Receipt: after you receive a book, leave feedback for the sender and earn 1/10th of a point. (如果你收到书了,你给寄送者留下反馈,会得到0.1点积分)

You use up points when(使用你的积分):

  • Mooching Books: each book you receive costs you 1 point, 2 points if it was postal mailed from another country.(索要:当你像别人索要书时,会从你帐户扣除1点积分,如果是国外寄来的会扣除2点积分)
  • Charities: you can give your points to worthwhile charities we work with. (捐赠你的积分)

Some additional facts:

  • 2:1 ratio: you have to send out at least 1 book for every 2 you receive. If you don’t keep this ratio up, you won’t be able to mooch any books, even if you have the points, until you improve your ratio. Sending internationally counts as 3 books.(2:1的比例,你寄出1本才可能索到2本,如果低于这个比例,将无法进行索要。国际寄送1本相当于3本。)
  • Feedback score: if your feedback score is bad, people may refuse your mooch requests. Efficient response and well-packaged books in good condition earn good feedback points.
  • Lost in the mail: if a book is "lost in the mail" the sender gets their point anyway, and the receiver doesn’t lose a point. You’re allowed a limited number of "books lost in the mail" in order for us to limit possible fraud.(如果寄丢了:如果书寄丢了,寄出者无论如何会得到积分,收书者不会因这次不成功的索要而失去积分。但是你寄丢书的个数是有限的,以防止欺骗)