Linux下經過server-status監控性能

Linux下經過server-status監控性能性能

前提:安裝好Apache,在opt/路徑下rest

 

  1. 查看Apache的工做模式

 

能夠知道是 prefork.c模式server

 

  1. 配置server-status 性能

 

進入到httpd.conf路徑blog

vi  /etc/httpd/conf/httpd.confget

而後添加io

<Location /server-status>監控

    SetHandler   server-status配置

    Order        allow,denyservice

    Deny from    nothingim

    Allow from   all

</Location>

 

ExtendedStatus On

 

<Location /server-info>

    SetHandler   server-info

    Order        allow,deny

    Deny from    nothing

    Allow from   all

</Location>

  1. 重啓:service httpd restart
  2. 訪問:http://192.168.254.135/server-status
相關文章
相關標籤/搜索