[GH-ISSUE #1184] 更新2.18之后, stub_status 模块启用失败 #7764

Closed
opened 2026-03-12 22:40:16 +03:00 by kerem · 10 comments
Owner

Originally created by @atie2001 on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1184

如题,不过就算启用成功,好像统计的数据从来没准过,当前活动连接一直是0的

Originally created by @atie2001 on GitHub (Jun 26, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1184 如题,不过就算启用成功,好像统计的数据从来没准过,当前活动连接一直是0的
kerem closed this issue 2026-03-12 22:40:22 +03:00
Author
Owner

@0xJacky commented on GitHub (Jun 26, 2025):

之前从哪个版本升级上来的呀,有开过吗

<!-- gh-comment-id:3007951193 --> @0xJacky commented on GitHub (Jun 26, 2025): 之前从哪个版本升级上来的呀,有开过吗
Author
Owner

@atie2001 commented on GitHub (Jun 26, 2025):

从2.1.6,自编译出来的,因为我们要自定义维护页,所以一直都是自编译

<!-- gh-comment-id:3008185580 --> @atie2001 commented on GitHub (Jun 26, 2025): 从2.1.6,自编译出来的,因为我们要自定义维护页,所以一直都是自编译
Author
Owner

@0xJacky commented on GitHub (Jun 26, 2025):

了解,您可以提供一下运行环境的情况吗,比如 nginx 版本,操作系统类型,nginx -V 的输出,nginx 的安装方式等

<!-- gh-comment-id:3008190881 --> @0xJacky commented on GitHub (Jun 26, 2025): 了解,您可以提供一下运行环境的情况吗,比如 nginx 版本,操作系统类型,nginx -V 的输出,nginx 的安装方式等
Author
Owner

@atie2001 commented on GitHub (Jun 26, 2025):

我明天贴上来,辛苦了

<!-- gh-comment-id:3008295995 --> @atie2001 commented on GitHub (Jun 26, 2025): 我明天贴上来,辛苦了
Author
Owner

@atie2001 commented on GitHub (Jun 27, 2025):

系统是centos7.9.2009为主,大致在用三种:nginx1.28.0 ,openresty1.2.7.2,openresty1.25.3.1
nginx编译:
./configure
--prefix=/opt/nginx
--sbin-path=/opt/nginx/sbin/nginx
--modules-path=/opt/nginx/modules
--conf-path=/opt/nginx/conf/nginx.conf
--error-log-path=/opt/nginx/logs/error.log
--http-log-path=/opt/nginx/logs/access.log
--pid-path=/opt/nginx/logs/nginx.pid
--lock-path=/opt/nginx/logs/nginx.lock
--with-threads
--with-file-aio
--with-http_ssl_module
--with-http_v2_module
--with-http_realip_module
--with-http_addition_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_auth_request_module
--with-http_random_index_module
--with-http_secure_link_module
--with-http_degradation_module
--with-http_slice_module
--with-http_stub_status_module
--with-stream
--with-stream_ssl_module
--with-stream_realip_module
--with-stream_ssl_preread_module
--with-pcre
--with-pcre-jit

openresty编译:
./configure --prefix=/opt/openresty --with-luajit --with-pcre-jit --with-http_realip_module --with-http_gzip_static_module --with-stream --with-http_v2_module --with-http_ssl_module --with-http_stub_status_module --with-stream_realip_module --with-stream_ssl_module --with-threads --with-http_sub_module --with-http_mp4_module --with-http_flv_module --with-openssl=../openssl-1.1.1w

<!-- gh-comment-id:3010986399 --> @atie2001 commented on GitHub (Jun 27, 2025): 系统是centos7.9.2009为主,大致在用三种:nginx1.28.0 ,openresty1.2.7.2,openresty1.25.3.1 nginx编译: ./configure \ --prefix=/opt/nginx \ --sbin-path=/opt/nginx/sbin/nginx \ --modules-path=/opt/nginx/modules \ --conf-path=/opt/nginx/conf/nginx.conf \ --error-log-path=/opt/nginx/logs/error.log \ --http-log-path=/opt/nginx/logs/access.log \ --pid-path=/opt/nginx/logs/nginx.pid \ --lock-path=/opt/nginx/logs/nginx.lock \ --with-threads \ --with-file-aio \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_auth_request_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_degradation_module \ --with-http_slice_module \ --with-http_stub_status_module \ --with-stream \ --with-stream_ssl_module \ --with-stream_realip_module \ --with-stream_ssl_preread_module \ --with-pcre \ --with-pcre-jit openresty编译: ./configure --prefix=/opt/openresty --with-luajit --with-pcre-jit --with-http_realip_module --with-http_gzip_static_module --with-stream --with-http_v2_module --with-http_ssl_module --with-http_stub_status_module --with-stream_realip_module --with-stream_ssl_module --with-threads --with-http_sub_module --with-http_mp4_module --with-http_flv_module --with-openssl=../openssl-1.1.1w
Author
Owner

@0xJacky commented on GitHub (Jun 27, 2025):

/opt/nginx/sbin 有加进系统的环境变量 PATH 吗

<!-- gh-comment-id:3011008280 --> @0xJacky commented on GitHub (Jun 27, 2025): /opt/nginx/sbin 有加进系统的环境变量 PATH 吗
Author
Owner

@atie2001 commented on GitHub (Jun 27, 2025):

没有的,但我在app.ini中提前填好
[nginx]
AccessLogPath = /opt/openresty/nginx/logs/access.log
ErrorLogPath = /opt/openresty/nginx/logs/error.log
LogDirWhiteList = /opt/openresty/nginx/logs
ConfigDir = /opt/openresty/nginx/conf
ConfigPath = /opt/openresty/nginx/conf/nginx.conf
PIDPath = /opt/openresty/nginx/logs/nginx.pid
TestConfigCmd = /opt/openresty/nginx/sbin/nginx -t
ReloadCmd = /opt/openresty/nginx/sbin/nginx -s reload
RestartCmd = /opt/openresty/nginx/sbin/nginx -s stop && /opt/openresty/nginx/sbin/nginx -c /opt/openresty/nginx/conf/nginx.conf
StubStatusPort = 80
ContainerName =

<!-- gh-comment-id:3011736402 --> @atie2001 commented on GitHub (Jun 27, 2025): 没有的,但我在app.ini中提前填好 [nginx] AccessLogPath = /opt/openresty/nginx/logs/access.log ErrorLogPath = /opt/openresty/nginx/logs/error.log LogDirWhiteList = /opt/openresty/nginx/logs ConfigDir = /opt/openresty/nginx/conf ConfigPath = /opt/openresty/nginx/conf/nginx.conf PIDPath = /opt/openresty/nginx/logs/nginx.pid TestConfigCmd = /opt/openresty/nginx/sbin/nginx -t ReloadCmd = /opt/openresty/nginx/sbin/nginx -s reload RestartCmd = /opt/openresty/nginx/sbin/nginx -s stop && /opt/openresty/nginx/sbin/nginx -c /opt/openresty/nginx/conf/nginx.conf StubStatusPort = 80 ContainerName =
Author
Owner

@0xJacky commented on GitHub (Jun 27, 2025):

也行,我这两天再加个配置吧

<!-- gh-comment-id:3011740473 --> @0xJacky commented on GitHub (Jun 27, 2025): 也行,我这两天再加个配置吧
Author
Owner

@atie2001 commented on GitHub (Jun 27, 2025):

谢谢!

<!-- gh-comment-id:3011765882 --> @atie2001 commented on GitHub (Jun 27, 2025): 谢谢!
Author
Owner

@0xJacky commented on GitHub (Jun 28, 2025):

最新的 commit 新增了一个选项,您可以试试

Image

<!-- gh-comment-id:3014791271 --> @0xJacky commented on GitHub (Jun 28, 2025): 最新的 commit 新增了一个选项,您可以试试 ![Image](https://github.com/user-attachments/assets/774c322c-b28d-4443-bdf0-4d65875d5202)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7764
No description provided.