【问题标题】:Is it possible to embed nginx in a C/C++ application是否可以在 C/C++ 应用程序中嵌入 nginx
【发布时间】:2011-07-01 13:42:34
【问题描述】:

该应用程序在 Linux、Windows、Macintosh 中运行。

另外,如果是,需要多少努力?

【问题讨论】:

    标签: c++ c nginx embedding


    【解决方案1】:

    nginx 可以在 windows 上运行吗?

    我认为使用包含良好 http 服务器的现有库会获得更好的结果。我的第一选择是libevent

    【讨论】:

      【解决方案2】:

      由于源代码质量低,Windows 版本的 Ngnix 未开源;它只是用于测试/开发。

      对于 Linux 和 *BSD,您可以使用 module API 将 C/C++ 应用程序嵌入 Nginx。但如果你想留在你的应用程序中,libevlibeio 是你的朋友。

      【讨论】:

        猜你喜欢
        • 2018-11-19
        • 2017-10-30
        • 1970-01-01
        • 2011-06-09
        • 1970-01-01
        • 2011-02-21
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多