tengine监控
tengine監控
連接數監控
server {listen 80;server_name localhost;location /status{#開啟監控stub_status on;#關閉access日志access_log off;#允許哪臺機器訪問#allow 127.0.0.1;#拒絕哪臺機器訪問#deny all;} }負載均衡監控
server {listen 80;server_name localhost;location /upstream{#用check_status模塊監控check_status;#關閉access日志access_log off;} }并發請求數監控
每秒并發數請求(只能用同天數據)
[root@tengine logs]# awk '{print $4}' access.log | sort -r | uniq -c | head -102 [28/Feb/2022:21:24:295 [28/Feb/2022:15:24:29訪問ip最多
[root@tengine logs]# awk '{print $1}' access.log | uniq -c | sort -nr | head -102 192.168.188.1362 192.168.188.1352 192.168.188.1341 192.168.188.133狀態碼統計
[root@tengine logs]# awk '{print $9}' access.log | uniq -c | sort -nr | head -107 404總結
- 上一篇: web中网络编程详解
- 下一篇: 巨杉数据库linux,【巨杉数据库Seq