在Windows上生成fastcgi应用程序? [英] spawn fastcgi apps on windows?
问题描述
我使用linux示例编写了一个玩具fastcgi应用程序.我想现在在Windows上运行它.我该怎么做?我知道如何在linux上生成进程并通过nginx(或lighttp)连接到它.我不知道如何在widnows上生成该过程.我使用pthreads和fastcgi lib构建应用程序.下一步是产卵.我没有运气就用谷歌搜索.我想通过Windows上的Nginx连接.
I wrote a toy fastcgi app using the linux example. I'd like to run it on windows now. How do i do it? I know how to spawn the process on linux and connect to it via nginx (or lighttp). I have no idea how to spawn the process on widnows. I build the app using pthreads and the fastcgi lib. spawning is my next step. I googled with no luck. I'd like to connect via nginx on windows.
如何在Windows上生成我的fastcgi应用程序? (我在Windows 7上)
How do i spawn my fastcgi app on windows? (i'm on windows 7)
推荐答案
我找到了解决方案.我放入了ifdef WIN32,并在侦听功能上添加了以下行FCGX_OpenSocket(":1234", 10);
1234是端口,10是待办事项.
I found a solution. I put a ifdef WIN32 and added this lineFCGX_OpenSocket(":1234", 10);
1234 is the port and 10 is the backlog on the listen function.
这篇关于在Windows上生成fastcgi应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!