Nov 08
    Lost your shell connection? Need multiple shell sessions?
    You are logged into your remote server via SSH and happily plucking along at your keyboard and then it happens. Suddenly, the characters stop moving and then you get the dreaded "Connection Closed" message. You have just lost your session. You were halfway through some task and now you have to start over. Ugh. Well you can prevent this from happening by using screen. Screen can not only save you from disconnection disasters, but it also can increase your productivity by using multiple windows within one SSH session.

  Screen真是个好东西。今天要用nutch爬东西,所以正好是需要这个东西了。用了Screen也不怕突然的terminal断线。

[more..]

Aug 07
 转自 zhoushuqun.com   http://zhoushuqun.spaces.live.com/blog/cns!2B070A76FD6627CE!1098.entry  作者: Sutra Tomcat 可以使用 apr 来提供更好的伸缩性、性能和集成到本地服务器技术。 在进行下面的操作之前,请先通过 ports 安装好 apr(/usr/ports/devel/apr)、Tomcat6(/usr/ports/www/tomcat6)。 并在 /etc/rc.conf 中添加 tomcat60_enable="YES"。 启动 tomcat # /usr/local/etc/rc.d/tomcat6 start 默认情况下按照好了 Tomcat 6,启动时会在 /usr/local/apache-tomcat6.0/logs/stdout.log 里出现下面的日志: INFO: The Apache Tomcat Native library which allows optimal...

[more..]