nginx status顯示結果詳解


[root@a1 ~]# http://127.0.0.1/nginx_status
-bash: http://127.0.0.1/nginx_status: 沒有那個文件或目錄
[root@a1 ~]# curl http://127.0.0.1/nginx_status
Active connections: 1   #表示nginx正在處理的活動連接數有多少個。
server accepts handled requests
 8217548 8217548 1188288

Reading: 0 Writing: 1 Waiting: 0

##################################
#server:表示nginx啟動到現在共處理了多少個連接
#accepts:表示nginx啟動到現在共成功創建了多少次握手(備注:請求丟失數=握手數-連接數)
#handled requests:表示總共處理了多少次請求

##################################
Reading:為nginx讀取到客戶端的Header信息數
Writing:為nginx返回給客戶端的Header信息數
Waiting: 為nginx已經處理完正在等待下一次請求指令的駐留連接,在開啟keep-alive的情況下。這個值等於
active - (Reading+Writing)

#########a1###########
#過濾查看連接數
[root@a1 ~]# curl http://127.0.0.1:80/nginx_status 2>/dev/null|grep "Active"|awk '{print $NF}'
3

#########a2###########
[root@a2 ~]# curl http://127.0.0.1:80/nginx_status
Active connections: 1
server accepts handled requests
 8219453 8219453 1027236
Reading: 0 Writing: 1 Waiting: 0

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM