2007年4月13日星期五

无奈

找不到答案并不悲哀,悲哀的是答案在你眼前,你却是视而不见。。。
一直在折腾gnus+leafnode的news reader,在网上找了很多资料,主要参考了"gnus伴侣之leafnode篇"一文,参照着作下来,没有遇到什么大问题,本来也比较简单。。。
直到最后一步,设置gnus之后,发现怎么也连不上nttp://localhost。我找不到问题所在,出www.newsmth.net问,没有理, 555555。我只好自己来,上网一顿google,还是没有线索。
我没有办法,只好重新做一遍,希望奇迹发生。奇迹没有出现,问题让我发现了,呵呵。leafnode don't support rlinetd's version of updating inet。虽然这是一个warning,但是这是唯一的线索了,我别无选择,再次来到google,找到leafnode的FAQ,找到了相关的问题。
Leafnode itself expects incoming connections on stdin and responds on stdout. Therefore, you cannot run it as a standalone server but have to use other programs which do the work for you. The most common one is inetd; some alternatives are xinetd and tcpserver. One of these programs must be running; check for inetd with
ps axu | grep inetd
If your distributions uses a different program, change the grep expression accordingly. Any of these programs should be running once.
OK,原来这样,rlinetd不能转发leafnode的包,我换xinetd!!!
小心地换了xinetd,根据提示,配置/etc/xinetd.conf

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{

# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info

}

service nntp
{
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/bin/leafnode
}
includedir /etc/xinetd.d

重启服务,一切OK,万岁!!

没有评论: