是否有任何 API 可以获取 APACHE WebServer 的启动时间?

发布于 2024-07-20 15:51:56 字数 501 浏览 5 评论 0原文

我正在编写一个小应用程序来获取 Apache Webserver 的各种诊断参数,例如服务器启动时间,Worker 模式Prefork 模式、服务器版本等等。 我发现很少有 API 可以获取有关这些参数的信息。 但我找不到任何用于获取 WebServer 启动时间的 API。 有这样的API吗? 如果没有 API,那么有不同的方法,例如在 linux/unix 中使用“ps”命令获取启动时间,并在 Windows 中使用类似的 API。我可以看到的其他方法是获取 APache WebServer 的时间在任何变量或文件中。 请赐教您宝贵的意见、方法。

TIA 阿尼尔

I am writing a small application to get the various diagnostic parameter of Apache Webserver like time of the start of the server, Worker mode or Prefork mode, server version and many more. I have found few API for getting info about these parameter. But I colud not find nay API for the getting start time of the WebServer. Is there any such kind of API?
If there is no API then there are different approaches like getting the start time using "ps" command in linux/unix and go for similar API in windows.There can be other approach that I could see is to have the time of the APache WebServer in any Variable or file.
Please enlighten me with your valuable comments, approaches.

TIA
Anil

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

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

发布评论

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

评论(1

花桑 2024-07-27 15:51:56

尝试看看 Apache 的 mod_status

Try to have a look at the Apache' the mod_status

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