gpt4 book ai didi

linux - Busybox httpd : error 501 on POST request and cgi not executing on yocto linux-3. 10.53

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:27:01 25 4
gpt4 key购买 nike

我正在尝试在基于 ARM 的定制板上使用 linux 3.10.53 作为操作系统设置轻量级 Web 服务器。我使用 Yocto 软件构建了操作系统。

我可以通过浏览器看到在我的板上托管的 html 页面,但每当我发送 HTTP POST 请求时,我都会收到错误“501 未实现,请求的方法无法识别”作为响应。

此外,当我发送 HTTP GET 请求时,浏览器会下载可执行文件而不是运行它。所有可执行文件(作为测试,仅以 html 方式打印纯字符串;源文件是用 C 代码编写的)都放在 Web 服务器主目录的“cgi-bin”目录下。我确保更改了它们的所有者和权限,事实上,我可以从开发板终端正常运行它们。

谢谢你的帮助

在这里编辑,因为我无法检查我的答案是否正确:找到罪魁祸首:yocto 软件中 busybox 构建的 httpd 服务默认情况下不启用 cgi。我不得不手动启用它,方法是使用“bitbake busybox -c menuconfig”并在“网络实用程序”菜单中检查 cgi 支持的标志

最佳答案

找到了罪魁祸首:yocto软件中busybox构建的httpd服务默认没有开启cgi。我不得不手动启用它,方法是使用“bitbake busybox -c menuconfig”并在“网络实用程序”菜单中检查 cgi 支持的标志

关于linux - Busybox httpd : error 501 on POST request and cgi not executing on yocto linux-3. 10.53,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33146009/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com