两种嵌入式WEB服务器

来自:http://blog.csdn.net/lixuyuan/article/details/6591807

1、下载:http://www.acme.com/software/mini_httpd/mini_httpd-1.19.tar.gz

2、解压:tar zxvf mini_httpd-1.19.tar.gz

3、编译,安装:cd mini_httpd-1.19

                              make

                               make install

4、建立存放网页和cgi的目录:mkdr mini

                                                        mkdir mini/wwwroot

                                                        mdir mini/wwwroot/cgi-bin

5、写配置文件:vim mini/mini_httpd.conf

内容:

port=8080
dir=/home/XXX/mini_httpd-1.19 /mini/wwwroot
cgipat=cgi-bin/*
user=nobody
pidfile=/home/XXX/mini_httpd-1.19 /mini/mini_httpd.pid
logfile=/home/XXX/mini_httpd-1.19 /mini/mini_httpd.log

6、把网页放在wwwroot下

7、打开mini_httpd:/usr/local/sbin/mini_httpd -C /home/XXX/mini_httpd-1.19 /mini/mini_httpd.conf

8、在浏览器里打开localhost:8080即可访问


华硕的RT-N56U无线路由器使用mini_httpd 作为web server,与Ralink使用的goahead

一、mini_httpd - small HTTP server

Fetch version 1.19.  : acme.com/software/mini_httpd/

mini_httpd is a small HTTP server.Its performance is not great, but for low or medium traffic sites it'squite adequate.It implements all the basic features of an HTTP server, including:

  • GET, HEAD, and POST methods.
  • CGI.
  • Basic authentication.
  • Security against ".." filename snooping.
  • The common MIME types.
  • Trailing-slash redirection.
  • index.html, index.htm, index.cgi
  • Directory listings.
  • Multihoming / virtual hosting.
  • Standard logging.
  • Custom error pages.

It can also be configured to do SSL/HTTPS and IPv6.


二、GoAhead WebServer:  http://www.embed.com.cn/protocol/goahead/webserver.asp

GoAhead WebServer采用开放源代码方式,任何人都可以下载、评估并修改代码,目的是为了使GoAhead WebServer成为市场上最领先的嵌入式Web服务器。

支持的平台定制的平台
Windows NT/98/95ChorusOS
Windows CEpSOS
Embedd LinuxuCOS
LinuxIRIX
VxWorksHP-UX
QNXRTEMS
Lynx 

    重要特性:

  • 支持虚拟服务器

  • 可使用SNMP代理

  • 支持SSL v3

  • 具有搜索引擎

  • 支持ASP、JavaScript、CGI、DHTML

  • 容易移植和系统集成

  • 可不使用文件系统


优点:性能好,功能多且代码开放    缺点:只有Web服务器,在整套解决方案时可能会导致维护困难




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值