当前位置:网站首页>GoAhead WebServer移植
GoAhead WebServer移植
2022-06-29 20:50:00 【星哥玩云】
GoAhead WebServer,它是一个源码免费、功能强大、可以运行在多个平台的嵌入式WebServer。
GoAhead WebServer的主要特性有:
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、pSOS等;
GoAhead WebServer 2.1.8移植:
1.下载源文件 http://www.goahead.com ;
2. 解压源文件,进入源文件目录下找到web文件夹,进入目录:web/docs/user,可以查看相关的编译信息和帮助;
3. 按照上面查看的编译指示,把源文文件编译成相应的平台的可执行程序;
windows平台:打开VC++,打开源文件目录下WIN目录的webs.dsw,编译,如果没有错则完成,执行webs.exe,在浏览器输入http://<yourIP>or<yourhostname>,访问,可看到默认的home.asp;
Linux平台:前提已安装了GCC,打开终端,进入源文件目录下LINUX目录,(如果有必要的话应修改Makefile,主要是定位编译器等工具路径)make编译,出现错误:
main.o: In function `websGetCgiCommName':
/LINUX/main.c:325: warning: the use of `tempnam' is dangerous, better use `mkstemp'
解决办法:
找到main.c (/LINUX目录) 文件,在函数websGetCgiCommName(..)函数中:
...
char_t *pname1, *pname2;
//pname1 = tempnam(NULL, T("cgi")); //注释掉
pname1 = (char_t *)mkstemp(T("cgi")); //增加
...
再次重新make,下常编译成功,即可运行./webs,完成;
4.goahead服务器移植完成,对于默认页面可修变,具体查看web/docs下的相关信息;
边栏推荐
- What are the mainstream brands of smart door locks? What characteristics should we pay attention to when purchasing door locks?
- Codeforces Global Round 21 C D E
- Fastadmin background setting radio button
- WIN10设置自动拨号联网任务,实现开机、断网自动重连
- Liunx instruction
- 注解
- 双目立体视觉摄像头的标定、矫正、世界坐标计算(opencv)
- Withdrawal of user curve in qualified currency means loss
- Ovirt database modify delete node
- Special training of C language array
猜你喜欢

. NETCORE unified authentication authorization learning - first authorization (2)
【云原生实战】KubeSphere实战——多租户系统实战
![Navigation experiment [microcomputer principle] [experiment]](/img/79/8311a409113331e72f650a83351b46.png)
Navigation experiment [microcomputer principle] [experiment]
![Navigation exercises [microcomputer principles] [exercises]](/img/79/8311a409113331e72f650a83351b46.png)
Navigation exercises [microcomputer principles] [exercises]

CAD assistant - 3D model format conversion tool

导航【微机原理】

Win10 sets automatic dial-up networking task to realize automatic reconnection after startup and disconnection

How to judge the quality of conductive slip ring from its appearance

智能门锁主流品牌有哪些?选购门锁时要注重产品的哪些特性?

mapbox-gl开发教程(十二):加载面图层数据
随机推荐
I found another cross domain method by chance. I don't know if anyone has ever played this way
「运维有小邓」Active Directory批量用户创建
Exercise 8 Chapter 8 Verilog finite state machine design -4 Verilog quartus Modelsim
Golang基础学习
输入年份与月份,求该月共有多少天
0/1分数规划专题
"Xiaodeng" active directory password expiration notification function is available for operation and maintenance
AI scene Storage Optimization: yunzhisheng supercomputing platform storage practice based on juicefs
A Japanese Cherry sold at a sky high price of 1980 yuan. Netizen: I feel cheated after eating it
CorelDRAW2022全新版V24.1.0.360更新
How to evaluate iFLYTEK AI translation pen P20 series? Is it worth buying?
Stm32cubemx learning (6) external interrupt experiment
Website stress testing tool - webbench
tmux设置
In depth good article | yolov5+deepsort multi-target tracking in-depth interpretation and testing (including source code)
「运维有小邓」AD域委派
Navigation [microcomputer principle]
Uncover the secret! Pay attention to those machines under the membership system!
Go deep into the underlying principles of go and rewrite redis middleware without secret
mapbox-gl开发教程(十二):加载面图层数据