LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 859|回复: 8

MDK10完全安装后无法访问http://localhost

[复制链接]
发表于 2004-7-4 20:44:20 | 显示全部楼层 |阅读模式
httpd,apache,mysql等都启动了
访问http://localhost时提示如下:
-----------
载入 http://localhost 时发生错误:
无法连接到主机 localhost
-----------

系统已联机升级到最新版本

另外附一下启动的服务:
alsa, atd, autofs, crond, devfsd, dm, fam, httpd, keytable, kheader, lisa, mysql, network, numlock, partmon, random, sound, syslog, xfs, xinetd
发表于 2004-7-4 20:54:34 | 显示全部楼层
hostname是不是localhost
发表于 2004-7-4 22:48:01 | 显示全部楼层
127.0.0.1呢?
 楼主| 发表于 2004-7-5 19:47:19 | 显示全部楼层
最初由 mandrakechina 发表
127.0.0.1呢?

也不行啊,不知道是不是软件上出了问题?
照说应该是没有问题的呀,好奇怪~~~
 楼主| 发表于 2004-7-5 19:48:16 | 显示全部楼层
最初由 hantsy 发表
hostname是不是localhost

完全安装的,都没做任何改动,应该是localhost
之前我用的MDK9.2都蛮好的呀
发表于 2004-7-6 05:52:25 | 显示全部楼层
请把ps -ax帖出来看看
还有ping一下localhost
发表于 2004-7-6 10:13:07 | 显示全部楼层
建议先把所有和Firewall相关的程序都关闭,然后以ping localhost测试。

可能是被防火墙隔开了。
 楼主| 发表于 2004-7-6 19:45:26 | 显示全部楼层
谢楼上二位,稍后我再试一下.

最近需要在linux里面定制phpbb社区,所以好痛苦啊... ...
 楼主| 发表于 2004-7-13 08:06:12 | 显示全部楼层
最初由 zonzi 发表
请把ps -ax帖出来看看
还有ping一下localhost

[carl@localhost carl]$ ps -ax
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:02 init [5]
    2 ?        SWN    0:00 [ksoftirqd/0]
    3 ?        SW<    0:00 [events/0]
    4 ?        SW<    0:00 [kblockd/0]
    5 ?        SW     0:00 [pdflush]
    6 ?        SW     0:00 [pdflush]
    7 ?        SW     0:00 [kswapd0]
    8 ?        SW<    0:00 [aio/0]
   10 ?        SW     0:00 [kseriod]
   14 ?        SW     0:00 [kjournald]
  139 ?        S      0:01 devfsd /dev
  229 ?        SW     0:00 [khubd]
  378 ?        SW     0:00 [kjournald]
  703 ?        S      0:00 /sbin/ifplugd -w -b -i eth0
  768 ?        S      0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dh
  820 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/v
  849 ?        S      0:00 syslogd -m 0 -a /var/spool/postfix/dev/lo
  851 ?        S      0:00 /usr/sbin/mysqld --basedir=/ --datadir=/v
  859 ?        S      0:00 klogd -2
1247 ?        S      0:02 xfs -port -1 -daemon -droppriv -user xfs
1280 ?        S      0:00 /usr/bin/kdm -nodaemon
1296 ?        S      0:00 /usr/sbin/atd
1305 ?        S      0:15 /etc/X11/X -deferglyphs 16 -auth /var/run
1310 ?        S      0:00 -:0
1313 ?        S      0:00 xinetd -stayalive -reuse -pidfile /var/ru
1336 ?        S      0:00 portmap
1395 ?        S      0:00 /usr/sbin/automount --timeout 60 /misc fi
1415 ?        S      0:00 /usr/sbin/automount --timeout 60 /net pro
1516 ?        S      0:00 crond
1805 ?        S      0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.
1812 ?        S      0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.
1813 ?        S      0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.
1814 ?        S      0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.
1815 ?        S      0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.
1877 ?        S      0:00 /usr/bin/lisa -c /etc/lisarc
1964 tty1     S      0:00 /sbin/mingetty tty1
1965 tty2     S      0:00 /sbin/mingetty tty2
1966 tty3     S      0:00 /sbin/mingetty tty3
1967 tty4     S      0:00 /sbin/mingetty tty4
1968 tty5     S      0:00 /sbin/mingetty tty5
1969 tty6     S      0:00 /sbin/mingetty tty6
2146 ?        S      0:00 /bin/sh /usr/bin/startkde
2227 ?        S      0:00 magicdev
2240 ?        S      0:00 chinput -gb
2245 ?        S      0:00 /usr/lib/gconfd-2 13
2246 ?        S      0:00 kdeinit: Running...
2249 ?        S      0:00 kdeinit: dcopserver --nosid
2251 ?        S      0:00 kdeinit: klauncher
2255 ?        S      0:02 kdeinit: kded
2256 ?        S      0:01 fam
2261 ?        S      0:02 /usr/bin/artsd -F 10 -S 4096 -s 1 -m arts
2271 ?        S      0:01 kdeinit: knotify
2273 ?        S      0:00 kwrapper ksmserver
2275 ?        S      0:01 kdeinit: ksmserver
2276 ?        S      0:02 kdeinit: kwin
2278 ?        S      0:04 kdeinit: kdesktop
2281 ?        S      0:03 kdeinit: kicker
2282 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-carl/
2283 ?        S      0:00 kdeinit: kio_file file /tmp/ksocket-carl/
2287 ?        S      0:01 kdeinit: klipper
2291 ?        S      0:01 korgac --miniicon korganizer
2301 ?        S      0:02 kdeinit: konsole --type linux
2303 pts0     S      0:01 bash
2346 pts0     T      0:00 ping localhost
2352 ?        S      0:52 /usr/lib/mozilla-1.6/mozilla-bin
2397 ?        S      0:00 /usr/bin/esd -terminate -nobeeps -as 2 -s
2417 pts0     R      0:00 ps -ax
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表