问题标签 [apxs2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - 如何为 apache c 模块设置超时
我有一个用 C 编写的 apache 模块,我想将此模块的执行时间限制为 15 分钟。可能吗?
apache - Apache mod 编译错误:apxs mod_antiloris.c
尝试安装 mod_antiloris。运行以下命令时出现编译错误:
编译错误:
mod_antiloris.c:126:37:错误:“conn_rec”没有名为“remote_ip”的成员 apr_cpystrn(ws_record->client, c->remote_ip, sizeof(ws_record->client));
mod_antiloris.c:133:10: 警告:传递 'ap_get_scoreboard_worker' 的参数 1 使指针从没有强制转换的整数 [默认启用] ws_record = ap_get_scoreboard_worker(i, j);
- Apache版本:Apache/2.4.6(SLES扩展支持平台)
- 操作系统 Redhat 7.4
请问有什么建议吗?
谢谢尼克
apache - 如何使用 apxs2 编译包含 sds 库的 apache 模块
我在这里得到示例 apache2 模块:
https://httpd.apache.org/docs/2.4/developer/modguide.html
我想在那里使用这个 sds 库https://github.com/antirez/sds
所以我将创建新模块并转到模块目录:
在 mod_mymodule.c 的第 44 行添加:
并在第 49 行的 mymodule_handler 中添加
我还将库文件(sds.c、sds.h、sdsalloc.h)放入与模块源代码文件相同的目录中,然后调用:
然后我将重新启动apache,但由于以下原因无法启动:
问题:如何修改 apxs 命令以使我的新模块与包含的库一起使用?