一、開啓監控with-http_stub_status_modulenginx
./configure --with-openssl=/usr/local/ssl --with-http_stub_status_moduleserver
make & make installblog
二、查看nginx的版本ssl
./nginx -Vopenssl
能夠看到配置參數已經有了with-http_stub_status_modulerequests
三、配置it
vi /usr/local/nginx/conf/nginx.confio
四、訪問 abc.xxx.com/nginx_status監控
頁面的參數介紹module
Active connections: 1當前活動的鏈接數
server accepts handled requests
2 2 2
2 總鏈接數connection
2 成功的鏈接數connection 失敗鏈接=(總鏈接數-成功鏈接數)
2 總共處理的請求數requests
Reading: 0 Writing: 1 Waiting: 0
Reading: 0 讀取客戶端Header的信息數 請求頭
Writing: 1 返回給客戶端的header的信息數 響應頭
Waiting: 0 等待的請求數,開啓了keepalive