问题描述
我正在开始一个新项目,我正在努力找出我应该使用哪些技术。这是交易,我正在编写一些将在无线路由器上运行的软件,我想提供一个Web界面。所以很可能我必须做一些服务器端Web开发。唯一的问题是我将要部署的设备只有16 MB的内存(Ubiquiti Bullet)。这里有一些更多的信息:
I'm starting a new project and I'm trying to figure out what technologies I should use. Here's the deal, I'm writing some software that will run on a wireless router and I would like to provide a web interface. So most likely I will have to do some server-side web development. The only issue is that the device I will be deploying this to only has 16 MB of RAM (Ubiquiti Bullet). Here's some more info:
1。)我将使用openwrt(linux)。
2.)显然,它必须是轻量级的
3.)这是一个学校项目,所以我可以使用任何我想要的技术。
1.) I'll be using openwrt (linux).2.) Obviously it has to be lightweight3.) It's a school project, so I can use any technologies I'd like.
显然,PHP是明显的选择,但还有其他一些更令人兴奋的事情(我对PHP并不疯狂)。
Obviously PHP is the obvious choice, but is there anything else a bit more exciting (I'm not crazy about PHP).
提前感谢!
推荐答案
OpenWRT的一些更新版本带有完全用lua(LuCi)编写的界面。你检查过这个,看看它是否适用?它运行在标准的CGI上,由OpenWRT上已经运行的嵌入式Web服务器调用(意味着您不必添加另一个软件包)。
Some of the later versions of OpenWRT come with an interface written entirely in lua (LuCi). Have you checked this out to see if it applies? It runs over standard CGI and is called by the embedded web server that is already running on the OpenWRT (meaning you don't have to add yet another software package).
查看他们的网站,它显然是一个全功能的Web框架,包括MVC,所以你可以更快地入门!
Check out their website luci.freifunk-halle.net, it apparently is a full featured web framework including MVC, so you are able to get started faster!
PHP相当大对于路由器,我认为它不会提供你正在寻找的速度! Lua不是一个很难从脚本开始的脚本语言,它与PHP并没有什么不同,Lua网站非常好,并且载入了!
PHP is rather big for a router, and I think it won't quite provide the speed that you are looking for! Lua is not a hard scripting language to pick up and start with, it is not that different from PHP, and the Lua website is very good and has loads of documentation!
这篇关于我应该在嵌入式系统中使用什么服务器端Web技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!