昨天 把MagicLinux又从仓库里升级了一下,带来了几个问题,这里说的是其中的一个问题。
不知是哪个包造成的影响,lo网卡在系统启动之后处于禁用状态。一开始还没发现这一点。
在本座照常打开安卓SDK,接上开发板准备进行调试时,弹出这样一个错误对话框:
大意 是说无法监听8700端口吧。狠奇怪,8700端口是没有被占用的。
于是 就照常去 古鸽去搜索原因 了。然后 发现古鸽打不开了。 本座上古鸽一直是用SSH隧道翻着墙上的。 而今天直接看着古鸽超时了。换了几条备用隧道都是这样。那些 不用隧道上的网站却狠正常,并且在上古鸽时的规则也改成直接连接的话,也能正常打开。看来隧道出问题了。
一直是使用gstm来开隧道的,这个图形界面的工具也不会显示什么调试信息。于是就在命令行去手动启动一个隧道看看怎么回事。
bash-4.0# ssh xxx . xxx . xxx . xxx -p 22 -l xxx -nN -D9090
xxx @ xxx . xxx . xxx . xxx 's password:
bind: Cannot assign requested address
channel_setup_fwd_listener: cannot listen to port: 9090
Could not request local forwarding.
正确输入用户 名密码之后,报告了后面的三句话错误。
再用这错误信息做关键字查一查试试。 看了好几个论坛啊,有些文章里提到lo网卡的问题。于是查看一下网卡的状态。
bash-4.0# ifconfig
eth1 Link encap:Ethernet HWaddr xx : xx : xx : xx : xx : xx
inet addr: xxx . xxx . xxx . xxx Bcast: xxx . xxx . xxx . xxx Mask: xxx . xxx . xxx . xxx
inet6 addr: xxxx :: xxxx : xxxx : xxxx : xxxx / xxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:672240 errors:0 dropped:0 overruns:0 frame:0
TX packets:570112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:832144737 (793.5 MiB) TX bytes:56651701 (54.0 MiB)
bash-4.0# ifconfig lo
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
啊,竟然只有eth1是处于启用状态 。以前长盛不衰的lo接口竟然不是处于启用状态。
那就把lo启用一下试试。
bash-4.0# ifup lo
./network-functions: line 173: is_false: command not found
./network-functions: line 173: is_false: command not found
./network-functions: line 173: is_false: command not found
./network-functions: line 173: is_false: command not found
可以看到还是报告了一些错误。然而lo却已经启用了。
bash-4.0# ifconfig
eth1 Link encap:Ethernet HWaddr xx : xx : xx : xx : xx : xx
inet addr: xxx . xxx . xxx . xxx Bcast: xxx . xxx . xxx . xxx Mask: xxx . xxx . xxx . xxx
inet6 addr: xxxx :: xxxx : xxxx : xxxx : xxxx / xxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:766174 errors:0 dropped:0 overruns:0 frame:0
TX packets:649151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:967217231 (922.4 MiB) TX bytes:62224273 (59.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask: xxx . xxx . xxx . xxx
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1508 (1.4 KiB) TX bytes:1508 (1.4 KiB)
此时再测试一下,隧道也能上了,安卓SDK也好了。
双儿
HxLauncher: Launch Android applications by voice commands