[问题]安装MlDonkey为什么连不上localhost?

上网、浏览、聊天、下载等
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

[问题]安装MlDonkey为什么连不上localhost?

#1

帖子 ukvk » 2008-02-17 10:20

我通过apt-get install 安装了源里以下程序:
mldonkey-gui 2.9.0-1
mldonkey-server 2.9.0-1
kmldonkey 0.10.1-3ubuntu4
gkrellm-mldonkey
安装的时候是选了自动运行的,可是怎么也连不上http://localhost:4080/

ping localhost的话,
theo@theo-laptop:~$ ping localhost
PING localhost (192.168.0.2) 56(84) bytes of data.

--- localhost ping statistics ---
23 packets transmitted, 0 received, 100% packet loss, time 22013ms


运行mlnet, 跟其他站友描述的情况少了最后一行Core started
theo@theo-laptop:~$ mlnet
2008/02/17 10:20:41 [cO] Starting MLDonkey 2.9.0 ...
2008/02/17 10:20:41 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2008/02/17 10:20:41 [cO] MLDonkey is working in /home/theo/.mldonkey
2008/02/17 10:20:41 [Gettext] Loading language resource mlnet_strings.en_US.UTF-8
2008/02/17 10:20:41 [cO] loaded language resource file
2008/02/17 10:20:41 [DNS] Resolving [theo-laptop] ...
2008/02/17 10:20:41 [DNS] Resolving [www.mldonkey.org] ...
2008/02/17 10:20:42 [cO] Logging in /home/theo/.mldonkey/mlnet.log
theo@theo-laptop:~$


我的/etc/network/interfaces是
auto lo
iface lo inet loopback

我曾模仿此帖http://forum.ubuntu.org.cn/viewtopic.php?p=528853&sid=e4af7d7a6fc9a360a2443d68c6c61732
最后的做法修改interfaces,结果我的网络彻底不行,就又改回来了

请问大侠怎么办好
tcitytale
帖子: 10
注册时间: 2007-12-31 15:31

#2

帖子 tcitytale » 2008-02-17 10:28

ping 127.0.0.1:4080试试
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#3

帖子 ukvk » 2008-02-17 10:34

theo@theo-laptop:~$ ping 127.0.0.1:4080
ping: unknown host 127.0.0.1:4080


ping的结果是那样我该怎么做?
上次由 ukvk 在 2008-02-18 17:30,总共编辑 1 次。
头像
drivel
帖子: 1918
注册时间: 2006-07-08 9:21
来自: University of Science and Technology Beijing
联系:

#4

帖子 drivel » 2008-02-17 10:48

检查/home/theo/.mldonkey/mlnet.log
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#5

帖子 ukvk » 2008-02-17 11:05

theo@theo-laptop:~$ tail /home/theo/.mldonkey/mlnet.log
2008/02/17 10:20:42 [dMain] ---- enabling Donkey ----
2008/02/17 10:20:42 [EDK] loading sources completed
2008/02/17 10:20:42 [dMain] using port 5661 (client_port TCP)
2008/02/17 10:20:42 [dMain] using port 5665 (client_port UDP)
2008/02/17 10:20:42 [dMain] using port 9488 (overnet_port TCP+UDP)
2008/02/17 10:20:42 [dMain] ---- enabling BitTorrent ----

Exception: bind failed: Address already in use at port 6881
This is normally caused by another application currently using this port.
Close that application and restart MLDonkey, exiting...
theo@theo-laptop:~$
头像
drivel
帖子: 1918
注册时间: 2006-07-08 9:21
来自: University of Science and Technology Beijing
联系:

#6

帖子 drivel » 2008-02-17 16:02

不是告诉你了,6881有程序在用,换个端口吧
lb_bn
帖子: 1261
注册时间: 2007-02-25 16:56

#7

帖子 lb_bn » 2008-02-17 16:20

可能开了什么bt软件。
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#8

帖子 ukvk » 2008-02-17 16:29

我有什么办法能找出谁在用6881吗?我不能用localhost:4080,找不到地方改mldonkey的6881
我之前卸载过bittorrent,跟这个有关系吗
我看了一下我现在的进程,不知道哪个有嫌疑
theo@theo-laptop:~$ ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 migration/0
4 ? 00:00:00 ksoftirqd/0
5 ? 00:00:00 watchdog/0
6 ? 00:00:00 migration/1
7 ? 00:00:00 ksoftirqd/1
8 ? 00:00:00 watchdog/1
9 ? 00:00:00 events/0
10 ? 00:00:00 events/1
11 ? 00:00:00 khelper
31 ? 00:00:00 kblockd/0
32 ? 00:00:00 kblockd/1
33 ? 00:00:00 kacpid
34 ? 00:00:00 kacpi_notify
184 ? 00:00:00 kseriod
212 ? 00:00:00 pdflush
213 ? 00:00:00 pdflush
214 ? 00:00:00 kswapd0
265 ? 00:00:00 aio/0
266 ? 00:00:00 aio/1
2090 ? 00:00:00 ksuspend_usbd
2092 ? 00:00:00 khubd
2239 ? 00:00:00 ata/0
2240 ? 00:00:00 ata/1
2241 ? 00:00:00 ata_aux
2276 ? 00:00:00 khpsbpkt
2358 ? 00:00:00 knodemgrd_0
2361 ? 00:00:00 scsi_eh_0
2362 ? 00:00:00 scsi_eh_1
2482 ? 00:00:00 scsi_eh_2
2483 ? 00:00:00 scsi_eh_3
2484 ? 00:00:00 scsi_eh_4
2647 ? 00:00:00 kjournald
2851 ? 00:00:00 udevd
3819 ? 00:00:00 kpsmoused
3907 ? 00:00:00 kmmcd
3929 ? 00:00:00 tifm
4020 ? 00:00:00 pccardd
4593 tty4 00:00:00 getty
4594 tty5 00:00:00 getty
4596 tty2 00:00:00 getty
4598 tty3 00:00:00 getty
4600 tty1 00:00:00 getty
4601 tty6 00:00:00 getty
4814 ? 00:00:00 acpid
4863 ? 00:00:00 kondemand/0
4864 ? 00:00:00 kondemand/1
4934 ? 00:00:00 syslogd
4987 ? 00:00:00 dd
4989 ? 00:00:00 klogd
5010 ? 00:00:00 dbus-daemon
5026 ? 00:00:00 NetworkManager
5040 ? 00:00:00 NetworkManagerD
5053 ? 00:00:00 system-tools-ba
5054 ? 00:00:00 dbus-daemon
5073 ? 00:00:00 hald
5074 ? 00:00:00 hald-runner
5112 ? 00:00:00 hald-addon-keyb
5115 ? 00:00:00 hald-addon-keyb
5127 ? 00:00:00 hald-addon-cpuf
5128 ? 00:00:00 hald-addon-acpi
5129 ? 00:00:00 hald-addon-keyb
5133 ? 00:00:00 hald-addon-keyb
5158 ? 00:00:00 cupsd
5162 ? 00:00:00 hald-addon-stor
5193 ? 00:00:00 atieventsd
5311 ? 00:00:00 nmbd
5320 ? 00:00:00 smbd
5365 ? 00:00:00 console-kit-dae
5468 ? 00:00:00 avahi-daemon
5469 ? 00:00:00 avahi-daemon
5482 ? 00:00:00 smbd
5484 ? 00:00:00 dhcdbd
5506 ? 00:00:00 hcid
5518 ? 00:00:00 bluetoothd-serv
5519 ? 00:00:00 bluetoothd-serv
5525 ? 00:00:00 krfcommd
5573 ? 00:00:00 dhclient
5669 ? 00:00:00 gdm
5672 ? 00:00:00 gdm
5675 tty7 00:06:06 Xorg
5701 ? 00:00:00 ntpd
5735 ? 00:00:00 atd
5749 ? 00:00:00 cron
5768 ? 00:00:02 mlnet
5858 ? 00:00:00 gnome-keyring-d
5861 ? 00:00:00 x-session-manag
5901 ? 00:00:00 scim <defunct>
5903 ? 00:00:00 ssh-agent
5906 ? 00:00:00 gconfd-2
5910 ? 00:00:00 dbus-daemon
5912 ? 00:00:01 gnome-settings-
5916 ? 00:00:00 scim-launcher
5920 ? 00:00:00 compiz
5922 ? 00:00:05 gnome-panel
5924 ? 00:00:04 nautilus
5928 ? 00:00:00 gnome-volume-ma
5932 ? 00:00:00 bonobo-activati
5952 ? 00:00:00 gnome-vfs-daemo
5962 ? 00:00:00 scim-helper-man
5963 ? 00:00:05 scim-panel-gtk
5965 ? 00:00:00 scim-launcher
5994 ? 00:00:06 emerald
5995 ? 00:00:10 compiz.real
5996 ? 00:00:05 gnome-screensav
6000 ? 00:00:00 vino-session
6001 ? 00:00:00 bluetooth-apple
6003 ? 00:00:00 update-notifier
6010 ? 00:00:00 evolution-alarm
6017 ? 00:00:00 trackerd
6019 ? 00:00:00 nm-applet
6020 ? 00:00:00 python
6024 ? 00:00:00 gnome-power-man
6038 ? 00:00:00 evolution-excha
6043 ? 00:00:00 evolution-data-
6069 ? 00:00:00 trashapplet
6087 ? 00:00:00 scim-bridge
6096 ? 00:00:00 fast-user-switc
6098 ? 00:00:01 deskbar-applet
6100 ? 00:00:00 mixer_applet2
6111 ? 00:00:00 firefox
6123 ? 00:00:00 run-mozilla.sh
6127 ? 00:04:42 firefox-bin
6188 ? 00:00:02 gnome-terminal
6191 ? 00:00:00 gnome-pty-helpe
6192 pts/0 00:00:00 bash
6348 ? 00:00:01 gedit
6349 pts/0 00:00:00 ps
theo@theo-laptop:~$
qdzheng
帖子: 277
注册时间: 2006-12-03 23:00

#9

帖子 qdzheng » 2008-02-18 13:36

执行下面的代码,看看能不能找到是那个程序占用了6881:

代码: 全选

~$sudo netstat -ptun|grep 6881
或者手工去改mlnet的配置
首先要更改当前目录为mlnet配置的目录,然后:

代码: 全选

~$grep -R 6881 *.ini
打编辑器打开找到的那个配置文件,将端口改为别的端口。再启动mldonkey。
好吧,听某人的建议,修改下签名。
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#10

帖子 ukvk » 2008-02-18 21:43

我执行sudo netstat -ptun|grep 6881 没有任何反应
后搜了一下,执行netstat -anpltu里面出现了6881,不知意味着什么?
theo@theo-laptop:~$ netstat -anpltu
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:4001 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:16769 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:6882 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:4080 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:9840 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN -
tcp 0 0 192.168.1.103:52244 63.245.213.31:443 ESTABLISHED6114/firefox-bin
tcp 0 0 192.168.1.103:52243 63.245.213.31:443 ESTABLISHED6114/firefox-bin
tcp 0 0 192.168.1.103:55539 203.208.37.104:80 ESTABLISHED6114/firefox-bin
udp 0 0 0.0.0.0:32768 0.0.0.0:* -
udp 0 0 0.0.0.0:16769 0.0.0.0:* -
udp 0 0 192.168.1.103:137 0.0.0.0:* -
udp 0 0 0.0.0.0:137 0.0.0.0:* -
udp 0 0 192.168.1.103:138 0.0.0.0:* -
udp 0 0 0.0.0.0:138 0.0.0.0:* -
udp 0 0 0.0.0.0:68 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 0.0.0.0:9844 0.0.0.0:* -
udp 0 0 192.168.1.103:123 0.0.0.0:* -
udp 0 0 127.0.0.1:123 0.0.0.0:* -
udp 0 0 0.0.0.0:123 0.0.0.0:* -
udp6 0 0 fe80::2a0:d1ff:fe8d:123 :::* -
udp6 0 0 ::1:123 :::* -
udp6 0 0 :::123 :::* -
theo@theo-laptop:~$
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#11

帖子 ukvk » 2008-02-18 22:01

执行sudo netstat -nltup的结果
theo@theo-laptop:~$ sudo netstat -nltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:4001 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:16769 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:6882 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 5215/smbd
tcp 0 0 0.0.0.0:4080 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:9840 0.0.0.0:* LISTEN 5561/mlnet
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 5215/smbd
udp 0 0 0.0.0.0:32768 0.0.0.0:* 5347/avahi-daemon:
udp 0 0 0.0.0.0:16769 0.0.0.0:* 5561/mlnet
udp 0 0 192.168.1.103:137 0.0.0.0:* 5213/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 5213/nmbd
udp 0 0 192.168.1.103:138 0.0.0.0:* 5213/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 5213/nmbd
udp 0 0 0.0.0.0:68 0.0.0.0:* 5719/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 5347/avahi-daemon:
udp 0 0 0.0.0.0:9844 0.0.0.0:* 5561/mlnet
udp 0 0 192.168.1.103:123 0.0.0.0:* 5486/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 5486/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 5486/ntpd
udp6 0 0 fe80::2a0:d1ff:fe8d:123 :::* 5486/ntpd
udp6 0 0 ::1:123 :::* 5486/ntpd
udp6 0 0 :::123 :::* 5486/ntpd
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#12

帖子 ukvk » 2008-02-18 22:14

还有这个,6881好像就是跟mldonkey有关
theo@theo-laptop:~$ sudo lsof -i :6881
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
mlnet 5561 mldonkey 9u IPv4 18261 TCP *:6881 (LISTEN)
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#13

帖子 ukvk » 2008-02-19 23:03

咋没人回复了涅 :roll:
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15

#14

帖子 iblicf » 2008-02-19 23:11

http://127.0.0.1:4080/

什么意思? mlnet 不是已经启动了么,,6881 是 mlnet BT 端口
ukvk
帖子: 22
注册时间: 2008-01-11 23:58

#15

帖子 ukvk » 2008-02-21 22:07

好像是阿,上述的状况完全没有改变,但http://127.0.0.1:4080/就打开了,捣鼓了一阵居然开始下载了,好奇怪
而且,打开Web管理主页除了Welcome to MLDonkey 2.9.0外下面有一句话
DNS resolution does not work
不知道意味着什么?
我打开软件MLdonkey,左下角一直显示connecting,最后干脆变成not connected什么功能都不能用。
还有阿,我在web管理上看到已经下载了15M,可是我找不到下载到哪去了!我的shares下面是这样的
Unshare P Directory Strategy used free % free FS
Unshare 0 incoming/directories incoming_directories 9.02G 98.17G 91% ext2/3
Unshare 0 incoming/files incoming_files 9.02G 98.17G 91% ext2/3
Unshare 0 /home/theo/mldonkey/share only_directory 9.02G 98.17G 91% ext2/3
前面两个文件夹我都找不到在哪,最后一个里面是空的
上次由 ukvk 在 2008-02-21 22:16,总共编辑 2 次。
回复