gpt4 book ai didi

c - 在 apache2 中重新编译 mod\module

转载 作者:行者123 更新时间:2023-11-30 17:29:48 25 4
gpt4 key购买 nike

在 Apache 模块“mod_authn_core.c”中发现错误,并已对其进行修复,

它以最简单的.c文件形式(C代码)给出

显然我需要编译它并替换我现有的模块文件,它应该可以工作

Bug Report in Apache forums

Suggested (Working) patch to be replaced with (from the bug report)

如果有正确的知识,它应该很容易做到,我认为这个问题是通用的,并且可以肯定地帮助其他人编译不同的模组。

最佳答案

我发现 apache2 有一个内置的 mods 编译器,名为 apxs2:

sudo apxs2 -c -i mod_authn_core.c

echo “LoadModule mod_authn_core /usr/lib/apache2/modules/mod_authn_core.so” > /etc/apache2/mods-available/mod_authn_core.load

关于c - 在 apache2 中重新编译 mod\module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25507685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com