輸入命令Nginx -Vnginx
打開conf.d/default.conf瀏覽器
配置模塊,配置位置在server或者locationcurl
配置完成後測試語法正確測試
nginx -tc /etc/nginx/nginx.conf url
確認沒有問題後,從新加載nginxserver
nginx -s reload -c /etc/nginx/nginx.conf blog
瀏覽器輸入 http://192.168.238.128/mystatusrequests
或者使用it
curl http://192.168.238.128/mystatusio
active connections – 活躍的鏈接數量server accepts handled requests — 總共處理了xx個鏈接 , 成功建立xx次握手, 總共處理了xx個請求reading — 讀取客戶端的鏈接數.writing — 響應數據到客戶端的數量waiting — 開啓 keep-alive 的狀況下,這個值等於 active – (reading+writing), 意思就是 Nginx 已經處理完正在等候下一次請求指令的駐留鏈接.