wenus

C# 学习的点点滴滴

博客园 首页 新随笔 联系 订阅 管理

本帖最后由 exzzzipad 于 2014-7-2 22:33 编辑

基本情况:
设备:TP-LINK WR720N
目前固件:[antclan][20120825]720N-4M-NAS-withSAMBA-squashfs
存储情况:外插了个8G U盘,开启了extroot
Xware版本:Xware1.0.15_mipseb_32_uclibc

故障现象:
无法连接到本机9000端口

这个颜色背景的字符是我输入的命令

我的portal文件位于/app/Xware1.0.15_mipseb_32_uclibc/下面
cd /app/Xware1.0.15_mipseb_32_uclibc/

root@OpenWrt:/app/Xware1.0.15_mipseb_32_uclibc#./portal
try again...(has tried 19 time(s)).
getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
wget: can't connect to remote host (127.0.0.1): Connection refused
xunlei service is not ready now.
fail to get xunlei service info finaly.
finished.

排障过程:
1、netstat -apn | grep '8002\|9988\|9000' (回车键左边的单上引号)看不到进程监..听9000端口,只有8002跟9988有在监..听,
tcp        0      0 0.0.0.0:8002            0.0.0.0:*               LISTEN      7503/vod_httpserver
tcp        0      0 0.0.0.0:9988            0.0.0.0:*               LISTEN      7501/ETMDaemon
初步判断是./lib/EmbedThunderManager没有运行。
2、直接执行
root@OpenWrt:/app/Xware1.0.15_mipseb_32_uclibc#./lib/EmbedThunderManager 
出现报错提示
./lib/EmbedThunderManager: can't load library 'libpthread.so.0'
看来是少了运行库。
3、google了一下“openwrt libpthread.so.0 opkg”,(回复可见下面的解决方法,这样可以让更多人看到)

游客,如果您要查看本帖隐藏内容请回复


处理完成后,再次执行步骤2,没有再报错了
root@OpenWrt:/app/Xware1.0.15_mipseb_32_uclibc# ./lib/EmbedThunderManager
Usage: EmbedThunderManager LICENSE [--verbose]

OK,现在直接./portal,成功运行,获取到激活码

root@OpenWrt:/app/Xware1.0.15_mipseb_32_uclibc# ./portal 
initing...

try stopping xunlei service...
killall: EmbedThunderManager: no process killed

setting xunlei runtime env...
port: 9000 is usable.

YOUR CONTROL PORT IS: 9000


starting xunlei service...
execv: /app/Xware1.0.15_mipseb_32_uclibc/lib/ETMDaemon.

getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
xunlei_portal.tmp        0T --:--:-- ETA
the active key is not valid.

try again...(has tried 1 time(s)).
getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
xunlei_portal.tmp        0T --:--:-- ETA

THE ACTIVE CODE IS: **************

go to http://yuancheng.xunlei.com, bind your device with the active code.
finished.


其他机型上类似问题也可以按同样的步骤运行,
第1步看几个程序是否运行了,这个是通过查看进程及端口判断的。
第2步是看程序为什么不能运行,缺了什么运行库,这个是通过尝试运行程序查看报错提示判断。
第3步通过查找运行库的关键词,安装对应的软件包。


http://luyou.xunlei.com/forum.ph ... mp;extra=#pid112171

posted on 2016-10-20 14:11  wenus  阅读(3426)  评论(2编辑  收藏  举报