嵌入式 Python Web 服务器的系统要求
我正在开发一个嵌入式设备,该设备在 ARM7 上运行 Linux,具有 64MB RAM 和 64MB 存储空间(12MB 可用)。该设备应通过网络进行配置,因此需要运行嵌入式网络服务器。目前它使用 Lighttpd 和 LUA,但我正在考虑用 Python 替换 LUA(甚至可能是 Lighttpd)。服务器偶尔会被一两个用户访问,以更改 Linux 中运行的 C 程序的内部设置。所以服务器负载并不是很多。我还需要它成为开源软件。 Web.py 似乎足够小,但我仍然需要编译我以前没有做过的Python。所以我想知道Python的系统要求是什么? LUA 似乎非常适合小型嵌入式系统,但我不喜欢它的 C 绑定语法。
但是,我找不到有关在此类设置中嵌入 Python 的系统要求的更新信息。 此页面来自 Michael Lauer 似乎变老。
有什么想法吗?建议?提示?链接?
I'm working on an embedded device that runs Linux on ARM7 with 64MB RAM and 64MB storage (12MB free). The device should be configured via web therefore it needs to run an embedded web server. Currently it's using Lighttpd and LUA, but I'm thinking about replacing LUA (or maybe even Lighttpd) with Python. The server will occasionally be accessed by one or two users for making changes to internal settings of the C program that is running in Linux. So the server load isn't really a lot. I also need it to be Open Source Software. Web.py seems to be small enough but I still need to compile Python which I haven't done before. So I'm wondering what are the system requirements of Python? LUA seems to do quite well for small embedded systems but I don't like its syntax for C-binding.
However, I couldn't find updated information about system requirements for embedding Python in such settings. This page from Michael Lauer seems to be old.
Any ideas? Suggestions? hints? links?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在使用 OpenWRT + Python 处理此设备:
http://wiki.openwrt .org/oldwiki/OpenWrtDocs/Hardware/Meraki/Mini
第一次 python 运行速度非常慢,但它正在对所有 .pyc 文件进行元编译,接下来它运行良好。
I'm working on this device using OpenWRT + Python:
http://wiki.openwrt.org/oldwiki/OpenWrtDocs/Hardware/Meraki/Mini
The first python run is veeeeeery slow but it are metacompiling all .pyc files, next it work well.