Giter Site home page Giter Site logo

我把lua和python copy到,网页可以访问了,但是数据始终为0, 如何使用才能显示正确的值? about ngx_lua_reqstatus HOT 4 CLOSED

jzh800 avatar jzh800 commented on July 23, 2024
我把lua和python copy到,网页可以访问了,但是数据始终为0, 如何使用才能显示正确的值?

from ngx_lua_reqstatus.

Comments (4)

zheng-ji avatar zheng-ji commented on July 23, 2024

请问你目前使用的 server_name 是哪一个?如果你使用的也是 justforfun.com
那么当你访问 http://justforfun.com 之后就开始有数据统计了。

from ngx_lua_reqstatus.

jzh800 avatar jzh800 commented on July 23, 2024

curl了两次,都是0,
另外我使用的是openresty,应该没有问题吧?

[root@localhost conf]# curl localhost:6080/?domain=justforfun.com
Server Name key: justforfun.com
Seconds SinceLast: 0
Average Req Time Sec: 0
Request Count: 0
Requests Per Secs: 0
5xx num: 0
[root@localhost conf]# curl localhost:6080/?domain=justforfun.com
Server Name key: justforfun.com
Seconds SinceLast: 0
Average Req Time Sec: 0
Request Count: 0
Requests Per Secs:

from ngx_lua_reqstatus.

jzh800 avatar jzh800 commented on July 23, 2024

[root@localhost software]# curl http://127.0.0.1/nginx_status
Active connections: 3
server accepts handled requests
73 73 150
Reading: 0 Writing: 1 Waiting: 2

from ngx_lua_reqstatus.

zheng-ji avatar zheng-ji commented on July 23, 2024

以上是统计 justforfun.com这个域名的信息,如果你访问了该域名,才会有该域名的统计信息哦
否则,一直为0也合理,因为没有请求来到这个 justforfun.com

from ngx_lua_reqstatus.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.