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
相关文章
相关标签/搜索