close

/etc/nginx/conf.d/
  新增 monitor.conf
  vi monitor.conf
  server{
    listen 8081;
    server_name XXX.XXX.XXX;
   location /nginx-status {
            stub_status on;
            access_log  off;
        }
  }
  service php-fpm restart
  service nginx restart

  http://xxx.xxx.xxx:8081/nginx-status #nginx status

nginx status 說明
  active connections nginx目前正在處理的連線數
  accepts 總共處理了多少個連線
  handled 成功了多少次
  requests 一共有幾個request 
  reading 讀取了多少Header
  writing 返回了多少Header
  waitting keep alive開啟的狀況下 保留待用的連線
arrow
arrow
    全站熱搜

    紐士比 發表在 痞客邦 留言(0) 人氣()