編譯安裝加上http_stub_status_module 模塊nginx
location /status { stub_status on; # access_log /usr/local/nginx/logs/status.log; auth_basic "NginxStatus"; }
查看:spa
Active connections: 17 server accepts handled requests 206875 206875 410230 Reading: 0 Writing: 1 Waiting: 16
Active connections :code
當前 Nginx 正處理的活動鏈接數.server
server : blog
總共處理了206875個鏈接;requests
accepts handled:it
成功建立387142次握手io
requests :編譯
總共處理了410230個請求.class
Reading:
nginx 讀取到客戶端的 Header 信息數.
Writing:
nginx 返回給客戶端的 Header 信息數.
Waiting:
開啓 keep-alive 的狀況下,這個值等於active-(reading+writing),意思就是Nginx已經處理完正在等候下一次請求指令的駐留鏈接.