啟用nginx status狀態詳解

2021-09-24 00:06:43 字數 627 閱讀 8232

在預設主機裡面加上location或者你希望能訪問到的主機裡面。

server 

}

請依照你的環境重啟你的nginx

# service nginx restart
# curl 

active connections: 11921

server accepts handled requests

11989 11989 11991

reading: 0 writing: 7 waiting: 42

active connections – 活躍的連線數量

server accepts handled requests — 總共處理了11989個連線 , 成功建立11989次握手, 總共處理了11991個請求

reading — 讀取客戶端的連線數.

writing — 響應資料到客戶端的數量

waiting — 開啟 keep-alive 的情況下,這個值等於 active – (reading+writing), 意思就是 nginx 已經處理完正在等候下一次請求指令的駐留連線.

收藏

nginx啟用nginx status狀態詳解

在預設主機裡面加上location或者你希望能訪問到的主機裡面。server 2.重啟nginx請依照你的環境重啟你的nginx service nginx restart3.開啟status頁面 curl 4.nginx status詳解 active connections 活躍的連線數量 se...

啟用nginx status狀態及詳解

在預設主機裡面加上location或者你希望能訪問到的主機裡面。server listen 80 default server server name location ngx status stub status on access log off allow 127.0.0.1 deny all...

CentOS 啟用nginx status狀態詳解

server systemctl restart nginx curl active connections 1 server accepts handled requests 3 3 3 reading 0 writing 1 waiting 0 active connections 活躍的連線數...