jamesxuruo 发表于 2003-11-18 11:47:44

请问一个关于lxr安装的问题

我前些天按照这个版中精华区里的提示安装了lxr。一开始还可以浏览网络,可是几天之后每次都出现"当试图与localhost连接时,连接被拒绝"。
我对这些不是特别清楚,请各位请教。急切等待中。

Dragonfly 发表于 2003-11-18 13:00:21

do u start u apache?

jamesxuruo 发表于 2003-11-18 17:29:41

怎么启动呢?我是按照精华版的说明一步一步做的,请您详细一点好吗?现在我遇到一个问题,由于以前只是研究一些理论的问题,实际操作练的很少,今天一个grub问题就弄的我很惭愧,所以我想从最基本的开始,不过在这之前请您说详细一点。谢谢

我的linux是redhat9。0,我没有全装,只是将显示出来的安装了,我在usr/bin中没有找到apache,另外,我按照说明刚刚安装完之后可以浏览lxr,只是里面没有任何的代码,可是几天之后就出现上面的提示,我也不知道是什么问题。请多指教

Dragonfly 发表于 2003-11-18 22:40:00

login as root
"/etc/init.d/httpd status" to check if it is running, if not
"/etc/init.d/httpd start" to run it

if u already started the httpd, then u may need to check you httpd.conf,u lxr.conf... things are more trouble then.

jamesxuruo 发表于 2003-11-19 12:07:16

谢谢你了,我上次是没有装apache,安装完之后就可以浏览了,原来每次都要都要启动apache,"/etc/init.d/httpd start"是启动apache吧?

我现在可以浏览代码了,可是所有的代码都没有链接,好像我的glimpse没有成功,我还是按照精华版里的内容进行配置,glimpse到底牵涉到哪些呢?

还有,linux有很多的配置文件,如果想对这些有个研究,我的意思是可以更深入的理解linux,应该从什么地方入手呢?或是提供一些好的书籍。

谢谢

Dragonfly 发表于 2003-11-21 02:13:38

u can run chkconfig or some other scripts to automatically start u apache every time when u boot u system.

if code has no link, this is not glimpse error. make sure you browse code via .../source perl script instead of browse code directly.

for configuration files, see my answer in another post. i think u can find some books for redhat on customizing and configuration. may get some.

jamesxuruo 发表于 2003-11-24 16:57:25

我浏览lxr时,显示:
#!/usr/bin/perl
# $Id: source,v 1.4 1998/05/14 11:59:22 argggh Exp $

# source --        Present sourcecode as html, complete with references
#
#        Arne Georg Gleditsch <[email protected]>
#        Per Kristian Gjermshus <[email protected]>
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

######################################################################

use lib 'lib/';
use SimpleParse;
use LXR::Common;
use LXR::Config;


sub descexpand {
    my $templ = shift;

    if ($index{$filename}) {
        return(&expandtemplate($templ,
                             ('desctext', sub {return($index{$filename})})
                             ));
    } else {
        return('');
    }
}


sub diricon {
    if ($filename eq '..') {
        return(&amp;fileref("<img src=\"/icons/back.gif\"".
                        " border=0 alt=\"Back\">",
                        $parentdir));
    } else {
        return(&amp;fileref("<img src=\"/icons/folder.gif\"".
                        " border=0 alt=\"Folder\">",
                        $Path-&gt;{'virt'}.$filename));
    }
}


sub dirname {
    if ($filename eq '..') {
        return(&amp;fileref("Parent directory", $parentdir));
    } else {
        return(&amp;fileref($filename, $Path-&gt;{'virt'}.$filename));
    }
}
。。。。。
这是怎么回事?是不是perl出了问题?我的perl是在/usr/bin中,相应的lxr安装的perl路径也是/usr/bin
这是怎么回事呢?谢谢

Dragonfly 发表于 2003-11-26 03:14:52

no, u need to set the .htaccess file to run instead of displaying the script
页: [1]
查看完整版本: 请问一个关于lxr安装的问题