mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1184] 更新2.18之后, stub_status 模块启用失败 #5076
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#5076
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @atie2001 on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1184
如题,不过就算启用成功,好像统计的数据从来没准过,当前活动连接一直是0的
@0xJacky commented on GitHub (Jun 26, 2025):
之前从哪个版本升级上来的呀,有开过吗
@atie2001 commented on GitHub (Jun 26, 2025):
从2.1.6,自编译出来的,因为我们要自定义维护页,所以一直都是自编译
@0xJacky commented on GitHub (Jun 26, 2025):
了解,您可以提供一下运行环境的情况吗,比如 nginx 版本,操作系统类型,nginx -V 的输出,nginx 的安装方式等
@atie2001 commented on GitHub (Jun 26, 2025):
我明天贴上来,辛苦了
@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
@0xJacky commented on GitHub (Jun 27, 2025):
/opt/nginx/sbin 有加进系统的环境变量 PATH 吗
@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 =
@0xJacky commented on GitHub (Jun 27, 2025):
也行,我这两天再加个配置吧
@atie2001 commented on GitHub (Jun 27, 2025):
谢谢!
@0xJacky commented on GitHub (Jun 28, 2025):
最新的 commit 新增了一个选项,您可以试试