问题描述
我如何检查FastCGI服务器是否仅在建立TCP连接后仍处于活动状态并可以正常运行?
How do I check if a FastCGI server is alive and running normally beyond just making a TCP connection?
我有许多远程独立的FastCGI服务器.我想监视FastCGI服务器本身,以确保其正常运行.仅仅向Web服务器发出请求是不够的,因为它会绕着死服务器自动路由.
I have a number of remote, stand-alone FastCGI servers. I want to monitor the FastCGI server itself to ensure its alive. Simply making a request of the web server is not enough as it will automatically route around a dead server.
谢谢!
推荐答案
您可以使用 FastCGI开发套件.在类似Debian的系统上和在Macports中,libfcgi软件包中包含程序.
You can use cgi-fcgi program that comes with FastCGI development kit. On Debian-like systems, and in macports, program is included with libfcgi package.
我的具有cgi-fcgi调用的脚本发布在 http://gist.github.com/209446
My script with cgi-fcgi invocation is published at http://gist.github.com/209446
这篇关于如何ping FastCGI服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!