nginx 配置笔记
生活随笔
收集整理的這篇文章主要介紹了
nginx 配置笔记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.nginx 監(jiān)控狀態(tài)統計
cd /opt/nignx/nginx-1.3.8./configure --prefix=/usr/local/nginx --with-http_stub_status_module #開始狀態(tài)監(jiān)控模塊makemake install cd /usr/local/nginx/config sudo vim nginx.configserver{listen 80;server_name localhost;charset utf-8;#charset koi8-r;#access_log logs/host.access.log main;location / {root /opt/nignx/file;# index index.html index.htm;autoindex on;#可以訪問目錄} location /status {stub_status on;access_log off;} }
?
?紅色部分
http://localhost/status
Active connections: 10 #nginx 正處理的活動連接數
server accepts handled requests 45 45 90
#nginx共處理了 45個連接 ,nginx共成功創(chuàng)建 45次握手 請求丟失數=(握手-連接),可以看出,我們沒丟請求;總共處理了90次請求
Reading: 0 Writing: 1 Waiting: 0
##Reading :nginx讀取到客戶端的Header信息數。
#Writing : nginx返回給客戶端的Header信息數。
#Waiting : Nginx已經處理完正在等候下一次請求指令的駐留連接.開啟keep-alive的情況下,這個值等于active–(reading+writing)。
?
?
?
?
?
?
轉載于:https://www.cnblogs.com/montya/archive/2012/11/16/nginx.html
總結
以上是生活随笔為你收集整理的nginx 配置笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 戴尔全面进军一体机市场【我眼中的戴尔转型
- 下一篇: 设置Linux网络的方法