ITeye博客

2012 年文章归档

共 5 篇文章

C/CPP的fastcgi程序-memleak

原生的用lighttpd起的程序不好检查memory leak. 使用spawn-fcgi调起用valgrind起的fastcgi程序即可. spawn-fcgi -n -a 127.0.0.1 -p 9000 -- /usr/bin/valgrind --leak-check=full --log-file=/tmp/valgrind.log /path/to/prog spawn-fcgi -n -a 127.0.0.1 -p 9000 -- /usr/bin/valgrind -v --tool=callgrind --log-file=/tmp/valgrind /path/to/p…

2012-05-30 09:52

scribed 安装

最近做日志分流,早闻scribed大名,正好安装尝试一下.据说源码很简单,安装很麻烦. 公司yum源里其实有打好包的scribe,可惜是centos5的,苦逼的未升级的历史遗留centos4只能蛋疼的从源码安装. 刚开始借鉴的这篇: http://dongxicheng.org/search-engine/scribe-installation/ 后来发现这篇更简洁: http://agiletesting.blogspot.com/2009/10/compiling-installing-and-test-running.html 步骤都差不多,先装boost(已有),再装thrift,然…

2012-05-08 12:29 · Software

centos screen没有滚动条

转自http://blog.chinaunix.net/uid-20554140-id-3144488.html 在/etc/screenrc里加入: termcapinfo xterm|xterms|xs ti@: te=\E[2J 即可. 若滚动条不起作用,自动弹回,将profile里的scrolling项中的scroll on output去掉~

2012-03-23 15:57

一句话总结-vim中php/html缩进处理

set ft=html & set ft=php

2012-02-22 12:00 · Software

secureCRT里screen中文乱码解决方案

google之,网上就一个解决方法:改~/.screenrc.还得重启所有screen进程. 结果detach以后再reattach,设置失效. 继续搜之,无解. 只好自己重新折腾. 最后简单解决: 不用改~/.screenrc(改应该也可以,都设置为utf-8),直接用screen -rU reattach即可. 若screen -rU 进去后无效,则ctrl+a, :defencoding utf-8<cr> :encoding utf-8 utf-8<cr>,以后再reattach进程都用screen -rU即可. 这年头,google带来的信息量太大,反馈信息不够,造成甄别不易,有时…

2012-02-16 16:34 · Software