Goahead的介绍与安装

1. goahead的作用

1.1 goahead的介绍

GoAhead WebServer,它是一个源码,免费、功能强大、可以在多个平台运行的嵌入式WebServer。GoAhead提供了多种方法编写动态页面,包括asp过程、GoForms过程和embedded javascript。GoAhead主要利用asp过程动态获取系统信息然后显示在页面上,GoForms过程则主要用来处理用户指令,例如控制设备和修改配置等.官网是如下介绍:

  GoAhead is the world's most popular, tiny embedded web server. It is compact, secure and simple to use. GoAhead is deployed in hundreds of millions of devices and is ideal for the smallest of embedded devices.
  GoAhead has a strong set of features including: SSL, authentication, security limits, and logging. With these features, GoAhead can be easily embedded in your device to run web applications.

1.2 goahead的特性

  1. 支持ASP
  2. 嵌入式的javascript
  3. 标准的CGI执行
  4. 内存中的CGI处理GoFroms
  5. 扩展的API
  6. 快速响应,每秒可处理超过50个请求
  7. 完全和标准兼容
  8. 如果不包含SSI,仅要求60K的内存;包含SSI,要求500K内存
  9. web页面可以存在ROM或文件系统中
  10. 支持多种操作系统,包括eCos 、Linux 、LynxOS 、QNX 、VxWorks 、WinCE

2. goahead下载与安装

 如果实在windows下练习goahead的人最好下载我上传的版本,通过其他两种方式可能编译不过去。goahead的下载可以通过官网下载方式:

2.1 goahead官网下载地址

2.2 github下载

2.3我上传的goahead版本

3. goahead编译与部署

3.1 goahead编译

进入windows控制台运行进入到goahead目录下,运行make.bat脚本。如图:运行指令
出现如下信息,说明你的goahead已经编译成功。如图:
成功信息
编译成功后再goahead目录->build下会自动生成一个叫windows-x86-default文件夹,该目录放的文件主要就是我们的可执行文件。

3.2 goahead部署

goahead部署的的步骤:
1.把goahead目录->src下的route.txt与auth.txt文件复制到goahead目录->bulid->windows-x86-default->bin下。
2.运行goahead-test.exe 文件部署goahead项目。
命令的格式为:goahead-test.exe -v 嵌入式web项目目录 ip地址:端口号 如图:成功部署
3.在嵌入式web项目目录(例如:D:/wwww)新建一个test.html文件并通过http://localhost:8089/test.html浏览器访问。如图:网页信息

猜你喜欢

转载自blog.csdn.net/mnjlj_23nmk/article/details/78153918