现在在服务器端,我想检查有多less请求目前正在处理我的nginx服务器。
像在数据库的情况下,我们可以检查由任何应用程序做的数据库连接列表….
同样的方式如何检查…..
添加到你的localhost
configuration(默认):
server { server_name localhost; [---snip---] location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } [---snip---] }
然后阅读(从本地主机)只有:
$ wget -O - -q http://localhost/nginx_status
给(例如):
Active connections: 2 server accepts handled requests 31432 31432 631255 Reading: 0 Writing: 2 Waiting: 0