找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: sa***

最新python2.7.3+gevent1.0rc2+pyopenssl0.13 路由器用gae达成, 简明教程

 火... [复制链接]
sady 发表于 2013-1-6 21:03
谢谢支持, 工作比较忙.来论坛时间会比较少...  很多网友发的消息没来得及回, 抱歉....
php5.4+mysql5  ,我 ...

折腾一个晚上最后搞定啦 翻出啦一些论坛的帖子加上 编译gevent的博客主人的一提供的新版本php搞定啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

以后有时间学习下编译固件 哈哈
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我来顶威武的SADY哥。。真的很不错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 urbf 于 2013-1-7 11:08 编辑

------------------------------------------------------
GoAgent Version    : 2.1.10dev (python/2.7.3 gevent/1.0rc2 pyopenssl/0.13)
Listen Address     : 0.0.0.0:8087
GAE Mode           : https
GAE Profile        : google_hk
GAE APPID          : 5
Pac Server         : http://127.0.0.1:8086/proxy.pac
------------------------------------------------------
Traceback (most recent call last):
  File "/opt/goagent/proxy.py", line 1685, in <module>
    main()
  File "/opt/goagent/proxy.py", line 1681, in main
    server.serve_forever()
  File "build/bdist.linux-mips/egg/gevent/baseserver.py", line 282, in serve_forever
  File "build/bdist.linux-mips/egg/gevent/baseserver.py", line 234, in start
  File "build/bdist.linux-mips/egg/gevent/server.py", line 78, in init_socket
  File "build/bdist.linux-mips/egg/gevent/server.py", line 89, in get_listener
  File "build/bdist.linux-mips/egg/gevent/server.py", line 153, in _tcp_listener
  File "<string>", line 1, in bind
socket.error: [Errno 125] Address already in use: ('0.0.0.0', 8087)


新手。。的改了IP也不行。。晕啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

urbf 发表于 2013-1-7 11:05
------------------------------------------------------
GoAgent Version    : 2.1.10dev (python/2.7.3 ...

可能你是运行了两次,先杀掉前一次。
killall -9 python2.7
然后再
/opt/bin/python2.7 /opt/goagent/proxy.py
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


终见大婶现身特来顶帖!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Mark一下吧,以备后用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


支持sady大神
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

留个名,备用
现在正用着goa
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

太强了,不支持不行啊,以前总不成功,这个一次成功
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个厉害,支持,等后续别人固定,我是小白,没办法
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请问sady大 oagent 和aria2 能否装到路由的JFFS里呢 怎么改路径
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 sady 于 2013-1-9 00:59 编辑
anbobi 发表于 2013-1-9 00:10
请问sady大 oagent 和aria2 能否装到路由的JFFS里呢 怎么改路径

可以的,主要是容量问题./jffs 空间有限,必须把程序从移动硬盘/opt分离出来, 才有可以装到jffs空间里去.

如果直接在/jffs 安装optware以后,空闲就没多少了. 是不可行的. 至于如何分离, 可以这样:

aria2 为例, 其他也类似.
1.首先新建一个备份文件夹

mkdir -p /opt/ariabak/bin
mkdir /opt/ariabak/lib
2.找出aria2 依赖的库文件.
ldd /opt/bin/aria2c

将显示的aria2 依赖的lib文件列表, 将列出全部lib文件,全部拷到备用文件夹中 /opt/ariabak/lib 下.
将/opt/bin/aria2c 复制到 /opt/ariabak/bin 下.

然后准备好jffs,

mkdir /jffs/opt

cp -a /opt/ariabak/* /jffs/opt

mount -o bind /jffs/opt /opt

最后一句写到 jffs 挂载脚本里边.

goagent 要python 平台支持容量更大, 不一定能同时放进去. 对于python 可以删掉*.py, *.pyo 和info之类的文件来减少容量

  还有问题,有人问系统有/usr/lib, /lib 有很多跟/opt/lib 相同的文件, 能不能用ln -s 连接来省空间..

optware 的编译器版本是
CROSS_CONFIGURATION_GCC_VERSION=4.1.1
CROSS_CONFIGURATION_UCLIBC_VERSION=0.9.28

tomato版本要高一点,是4.2.4 和0.9.30 .
所以/lib , /usr/lib 和/opt/lib是两套不一定兼容的平台. 但是有一些可以,自己可实验一下, 可能会不稳定,不建议.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢sady大神!但是希望更新下5358的固件!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

其实goagent有不少改进增强版本都比原版有优势
snova的go语言版要是能移植到optware上的话就很爽了
可以很好的解决证书之类的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 22:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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