gpt4 book ai didi

Nginx Module http_stub_status_module 安装后加载问题

转载 作者:行者123 更新时间:2023-12-01 09:26:22 32 4
gpt4 key购买 nike

我在我的一台服务器上使用 nginx,我下载它的源代码并使用以下方法编译它:

./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module \
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--add-module=/opt/ngx_http_substitutions_filter_module \
--with-http_stub_status_module

在 conf.d 中设置和添加文件,它的工作正常。但是当我重新启动它时突然给我错误消息:

nginx: [emerg] unknown directive "stub_status" in /etc/nginx/conf.d/mytest.conf:6

我查看了更多细节,发现它无法加载模块“http_stub_status_module”。我知道我是通过安装编译的。

My Question is there any way i can reload this module or add somewhere in conf to make it working??**i dont want to install it again because if i compiled it again it will remove my current configuration.

最佳答案

您需要使用 stub_status 编译 nginx,将以下内容传递到您的 ./configure 文件:

--with-http_stub_status_module to ./configure

Gentoo 用户:启用 expanded USE-Flag status 并重新编译 nginx。/etc/portage/package.use/nginx 示例:

www-servers/nginx NGINX_MODULES_HTTP: stub_status

最后,执行此操作:emerge -pav nginx

关于Nginx Module http_stub_status_module 安装后加载问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23003700/

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