哪种网络服务器适合这种设计?
我们开始在大学实施一个项目来检查学生的出勤情况。每张学生卡都将被嵌入式 Linux 板上的 RFID 模块识别。嵌入式Linux板可以与远程网络服务器通信以检查学生卡的身份。网络服务器预计具有以下功能:
- 有一个数据库,以便我们可以添加或删除学生卡的条目。
- 可以对客户端访问进行身份验证,以便只有授权用户(或嵌入式Linux板)才有权限操作数据库。
- 有一个用于管理员远程管理的网络界面。
- 嵌入式Linux板可以检索数据并将新数据放入数据库(我们打算使用cURL来实现此功能)。
我们之前从未做过任何部署Web服务器的项目,我们不知道什么样的Web服务器适合这种设计。任何建议表示赞赏。提前致谢。
We start to implement a project at university to check student attendances. Each student card will be recognized by the RFID module on an Embedded Linux board. The Embedded Linux board can communicate with the a remote webserver to check the identification of the student card. The webserver is expected to have the following features:
- has a database so that we can add or remove entries for student cards.
- can authenticate the client access, so that only authorized users (or the Embedded Linux board) have privileges to manipulate the database.
- has a web interface for admin remote management.
- the Embedded Linux board can retrieve data and put new data to the database (we intend to use cURL to implement this feature).
We have never done any projects on deploying webserver before, we don't know what kind of webserver is suitable for this design. Any suggestions are appreciated. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不确定这是否是您想要的结构,但这是当托管应用程序的嵌入式 Linux 设备需要与基于服务器的 DB 通信时通常使用的结构:
Not sure if this is the structure you want but this is the structure generally used when an embedded linux device hosting an application needs to communicate to a server based DB:
我建议您探索 Google App Engine。设置和开始使用非常简单且免费。如果您计划通过 HTTP/SSL 以外的方式与应用程序进行通信,那么我不推荐 Google App Engine。
Jetty 是另一个轻量但功能强大的 Java Web 服务器。
根据您的需要,您还可以使用 LAMP 堆栈(Linux、Apache、MySQL 和 PHP)。
到目前为止,除了 RFID 模块之外,您的任何限制都不会在这些平台上引发任何危险信号。您需要确保数据可以从硬件传输到您的应用程序。
I would recommend you explore Google App Engine. It's easy and free to setup and get started. If you plan on communicating with the app through something other than HTTP/SSL, then I wouldn't recommend Google App Engine.
Jetty is another light yet powerful Java web server.
Depending on your needs, you could also use the LAMP stack (Linux, Apache, MySQL, and PHP).
So far, none of your constraints raise any red flags on these platforms, with the exception of the RFID module. You would need to make sure the data can get from the hardware to your application.
如果我理解正确的话,您的网络服务器没有在嵌入式板上运行。在这种情况下,您不需要内存占用限制。您也可以使用 Apache 等成熟的网络服务器。
但如果您想将网络服务器功能放在主板本身上,您也可以看看 micro-httpd、lighttpd 和 GoAhead 网络服务器。
If I understand this correctly, your webserver is not running on the Embedded board. In which case, you do not need to have memory footprint constraints. You can use mature webservers like Apache also.
But you can also take a look at micro-httpd, lighttpd and GoAhead webserver if you want to put the webserver functionality on the board itself.
如果您的网络服务器需要在您需要嵌入式网络服务器的设备上运行,GoAhead 是一款非常轻量且免费的网络服务器。
而且它也可以在 Linux 上运行。
我们开发了一些基于 GoAhead Web 服务器的应用程序及其优点。
If your webserver is needs to be run on the device you need embedded web servers and GoAhead is one web server is which very lightweight and free of cost.
And also it runs in Linux.
We developed few applications based on GoAhead web server and its good.