“孩子以状态 13 退出”当尝试使用 lighttpd 运行 fastcgi 示例时

发布于 2024-09-12 21:14:06 字数 698 浏览 0 评论 0原文

我编译了fastcgi c-api示例: http://www.fastcgi.com/devkit/examples/ 当我在命令行中手动执行它们时(例如通过键入 ./echo),它们工作得很好,但是当我尝试使其与 lighttpd 一起工作时,我遇到了一些麻烦。

"/echo.fcgi" => (
                  "localhost" => (
                          "socket" => "/tmp/echo.sock",
        "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/tiny",
                          "check-local" => "disable"
                  ),
          )

new-host:examples onur$ ls -la echo
-rwxr-xr-x  1 _www  _www  3322 Aug  4 21:21 echo

我缺少什么?在 lighttpd 中使用 fastcgi 执行二进制文件有哪些特殊性?

I have compiled fastcgi c-api examples: http://www.fastcgi.com/devkit/examples/
They work fine when I execute them manually in the command line (by typing ./echo for example) but I have some troubles when I try to make it work with lighttpd.

"/echo.fcgi" => (
                  "localhost" => (
                          "socket" => "/tmp/echo.sock",
        "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/tiny",
                          "check-local" => "disable"
                  ),
          )

new-host:examples onur$ ls -la echo
-rwxr-xr-x  1 _www  _www  3322 Aug  4 21:21 echo

What am I missing? What are the specificities of the execution of a binary with fastcgi in lighttpd?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

隱形的亼 2024-09-19 21:14:06

这不应该

 "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/tiny",

是这样的吗?

 "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/echo",

你正在尝试运行echo而不是tiny,不是吗?

shouldn't this:

 "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/tiny",

be something like this, instead?

 "bin-path" => "/Users/onur/Downloads/fcgi-2.4.0/examples/echo",

you are trying to run echo and not tiny, aren't you?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文