Nginx 狀態資訊功能配置

2022-07-04 23:36:21 字數 600 閱讀 9456

可以單獨建立乙個虛擬主機來配置 nginx 狀態資訊功能

[root@localhost conf]# vim vhosts/status.abc.conf 

server

}

使用 ab 壓力測試工具模擬使用者併發訪問**:

修改客戶端 hosts解析檔案,在模擬訪問**的同時訪問

active connections: 1005 

server accepts handled requests

152111 152111 149869

reading: 0 writing: 1 waiting: 1004

數值說明:

請求丟失數 = accepts - server,可以看出本次狀態顯示沒有丟失請求

在開啟 keep-alive 的情況下,waiting = active connections - (reading + writing)

nginx狀態資訊配置

1 安裝nginx 2 修改配置檔案 usr local nginx sbin nginx s reload 3 瀏覽器測試 active connections 3 正在處理的活動連線數 server accepts handled requests server表示nginx啟動到現在共處理了幾...

Nginx狀態資訊(status)配置及資訊詳解

nginx狀態資訊功能的介 nginx 在編譯安裝 nginx 的時候新增 with http stub status module 引數,其功能是記錄 nginx 的基本訪問狀態資訊,讓使用者了解 nginx 的工作狀態,例如 1 新建乙個虛擬主機來配置 nginx 狀態資訊功能 2 修改ngin...

nginx配置之狀態模組和壓力測試功能

狀態模組功能 nginx.conf中的http 中的server 中 location status 開啟nginx狀態功能 stub status on 直接在網頁中請求status頁面即可顯示 linux的壓力測試功能 1.安裝ab命令 yum y install httpd tools 2.使...